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?
Time Question
Moderator: General Moderators
- SimpleManWeb
- Forum Commoner
- Posts: 57
- Joined: Wed Dec 30, 2009 4:15 pm
- Location: New Hampshire, USA
Re: Time Question
I believe you will need "mktime". Take a look at the examples here:
http://php.net/manual/en/function.mktime.php
http://php.net/manual/en/function.mktime.php