Scorpion Programming
Wednesday, March 6, 2013
Timestamps
<?php
$time=time();
$time_now=date('D M Y @H:i:s', $time);
$time_modified=date('D M Y @H:i:s', strtotime('-1 week 2 hours 30 seconds'));
echo 'The time now is '.$time_now.'<br>The time modified is '.$time_modified;
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment