英[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 mktime() function syntax

Function: Return the UNIX timestamp of a date

Syntax: mktime(hour,minute,second,month,day,year,is_dst)

Parameters:

Parameter Description
hour Optional. Specified hours.
minute Optional. prescribed points.
secondOptional. Specifies seconds.
month Optional. Specified month.
day Optional. Specify days.
year Optional. Specified year.
is_dst Optional. Set to 1 if the time is during daylight saving time, 0 otherwise, or -1 (default) if unknown. If unknown, PHP will try to find it itself (possibly producing unexpected results).

Description: Returns the UNIX timestamp of a date

php mktime() function example

<?php
echo mktime(0, 0, 0, 4, 25, 2012);
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

1335283200
//返回2012年4月25日0时0分0秒的时间戳