php strtotime() function
Translation results:
英[taɪm] 美[taɪm]
n.Time; time; era; time
vt. Arrange time for...; measure the time of...; adjust (mechanical) Speed; the speed with which a clock or watch is set correctly
vi. In time; Harmony; Beat
adj. Timing; Regular; [American English] Installment (payment)
int.[Sports]
Third person singular: times Plural: times Present participle: timing Past tense: timed
php strtotime() functionsyntax
Function:Parse English text date and time into Unix timestamp
Syntax: strtotime(time,now)
Parameters:
Parameters | Description |
time | Required. Specifies a date/time string. |
now | Optional. Specifies the timestamp used to calculate the return value. If this parameter is omitted, the current time is used. |
Description: Parses any English text date or time description into a Unix timestamp (since January 1 1970 00:00:00 GMT seconds).
php strtotime() functionexample
<?php echo strtotime("now"); echo "<br>"; echo strtotime("tomorrow"); ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
1524123365 1524153600 //具体输出视情况而定