Jump to content

Data Calculation's


Recommended Posts

Ok, I am getting the date like this

$date = strtotime(date());

ok, there you have it, a Unix time stamp of the time, date, and everything else.

From here, is this the best way to do calculations.

Like if I wanted to tell when 48 hours had passed from this date, how do I go about doing that.

I know for example if you wanted to add a day, you check on how many "number's" here are in a day and put + that number onto the strength.

Can someone tell me some stuff about this, so I am more familiar with dates, before I start all of these calculations.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.