Page 1 of 1

Time Question

Posted: Fri Jan 22, 2010 11:00 am
by gotornot
Hi

Im looking to generte a unix tmestamp for a certain day so i can use it to compare in db the info is posted through ie day=, month=, year=,

Is there a comand i could use for example

$fromunix = comand(''00:00:01','$day','$month','$year') i need 1 second past midnight and the date to compare it to will be:
$tounix = comand(''23:59:59','$day','$month','$year')

Any ideas?

Re: Time Question

Posted: Fri Jan 22, 2010 12:37 pm
by SimpleManWeb
I believe you will need "mktime". Take a look at the examples here:

http://php.net/manual/en/function.mktime.php