Some of the time functions of PHP, this section after the end, you can go to php more advanced content ...
<?php Date_default_timezone_set ("Asia/shanghai"); EchoThe timestamp returned by the Mktime function: ".Mktime()." <p> "; Echo"The current date is:".Date("Y-m-d",Mktime())." <p> "; Echo"The current time is:".Date("H:i:s",Mktime())." <p> "; $nextWeek= Time() + (7 * 24 * 60 * 60); Echo' Now: '.Date(' y-m-d '). " <p> "; Echo' Next Week: '.Date(' y-m-d ',$nextWeek)." <p> "; Echo"Date_atom =".Date(Date_atom); Echo"<p>date_cookie =".Date(Date_cookie). " <p> "; $arr=getdate(); Echo $arr[year]. " -".$arr[Mon]. " -".$arr[Mday]. "". " <p> "; $year= 2008; $month= 2; $day 1= 29; $day 2= 30; Var_dump(checkdate($month,$day 1,$year)); Echo"<br>"; Var_dump(checkdate($month,$day 2,$year)); Echo"<br>"; Echo Date("L y-m-d h:i:s T"); Echo"<br>"; setlocale(Lc_all, "CHS"); Echo"Chinese simple physique style:".strftime("Today is%a"); Echo"<br>"; Echo Strtotime("Now"), "\ n"; Echo"Output time:".Date("Y-m-d h:i:s",Strtotime("Now"), "<br>"; ?>
Does this even make PHP? -8