Common timestamps of php
Strtotime ('Now ') strtotime ('today') strtotime ('tomorrow') strtotime ('Yesterday') strtotime (date ('Y-m-D ', strtotime ('+ 1 DAY') strtotime ('tomorrow')-time () strtotime ("2009-1-22") strtotime ("+ 1 day ") date ("Y-m-d H: I: s", time () date ("Y-m-d H: I: s ", strtotime ("+ 1 day") strtotime ("-1 day") date ("Y-m-d H: I: s", time ()) date ("Y-m-d H: I: s", strtotime ("-1 day") strtotime ("+ 1 week ") date ("Y-m-d H: I: s", strtotime ("+ 1 week") strtotime ("-1 week ") date ("Y-m-d H: I: s", strtotime ("-1 week") strtotime ("next Thursday ") date ("Y-m-d H: I: s", strtotime ("next Thursday") strtotime ("last Thursday") date ("Y-m-d H: i: s ", strtotime (" last Thursday "))
Strtotime can parse the date and time descriptions of any English text into Unix timestamps;
Use mktime () or date () to format the datetime to obtain the specified timestamp.