Sunday, November 26, 2017

Timestamp in PHP

<?php

$time = time();
$time_current = date('d M Y @ H:i:s', $time);
$time_modified = date('d M Y @ H:i:s', tostrtime(+ 1 year));
echo 'The current time is  ' .$time_current. ' and The time modified is ' .$time_modified.'!';

?>

No comments:

Post a Comment