Mktime = mktime ($ hours, minute, seconds, month, day, years)
$ Start_time = mktime (,); // start time
$ End_time = mktime (,); // End Time
$ Times = $ end_time-$ start_time ;//
How many seconds is the difference between start and end? 6
$ Now_time = $ times/(24*3600); // get the total number of times
The mktime () function returns the unix timestamp of a date.
The parameter always represents the gmt date, so is_dst has no effect on the result.
The parameters can be left empty from right to left. The blank parameters are set to the corresponding current gmt value.
Syntax
Mktime (hour, minute, second, month, day, year, is_dst) parameter description
Hour is optional. The specified hour.
Minute is optional. Minutes.
Second is optional. Specified seconds.
Month is optional. Indicates the month in number.
Day is optional. Specified day.
Year is optional. Specified year. In some systems, the valid value ranges from 1901 to 2038. However, this restriction does not exist in php tutorial 5.
Is_dst is optional. If the time is in the daylight saving time (dst) period, it is set to 1; otherwise, it is set to 0. If it is unknown, it is set to-1.
The is_dst parameter has been deprecated since 5.1.0. Therefore, the new time zone processing feature should be used.