<?php
$time_now = time();
echo $time_now; //output example: 1219848654
echo '<br />';
$str_time = date('Y-m-d H:i:s', $time_now);
//look at php date function for more options
echo $str_time; // 2008-08-27 14:50:54
?>
Get Free Sinhala IT Learning Videos Kuppiya.com
No comments:
Post a Comment