Page 1 of 1
Getting time() read out from a prior date
Posted: Sun Jan 29, 2006 1:29 pm
by HiddenS3crets
I want to get the type of output that
outputs using prior months and years, like the time() output for April 2005, December 2004, etc
Posted: Sun Jan 29, 2006 1:31 pm
by John Cartwright
date()
..
Code: Select all
<?php echo date('m d Y', time()); ?>
Posted: Sun Jan 29, 2006 1:34 pm
by HiddenS3crets
No, that's not what i want. I need to get timestamps from past dates, not the current date
Posted: Sun Jan 29, 2006 1:35 pm
by John Cartwright
Posted: Sun Jan 29, 2006 3:02 pm
by josh
http://www.php.net/mktime
so you aren't relying on the wording of the time