PHP ʖ²ἯTH
º/A
strtotime
˵÷
=ד 1. strtotime() =ד
echo strtotime ("now"), "\n"; echo strtotime ("10 September 2000"), "\n"; echo strtotime ("+1 day"), "\n"; echo strtotime ("+1 week"), "\n"; echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime ("next Thursday"), "\n"; echo strtotime ("last Monday"), "\n";
=ד 2. ¼첩ʧ°ܼ/B
$str = 'Not Good'; if (($timestamp = strtotime($str)) === -1) {echo "The string ($str) is bogus";} else {echo "$str == ". date('l dS of F Y h:i:s A',$timestamp);}
º/A
ưµ㼯A
strftime
ɏһ¼¶
time