mktime = mktime ($ hours, minute, seconds, month, day, years)
$ start_time = mktime (0,0,0,01,09,2010); // start time
$ end_time = mktime (0,0,0,02,09,2010); // end time
$ times = $ end_time- $ start_time; //
How many seconds between beginning and end 6
$ now_time = $ times / (24 * 3600); / / draw a total of how much
The mktime () function returns a unix time stamp of the date.
The parameter always represents the gmt date, so is_dst has no effect on the result.
Arguments can be left blank from right to left, and empty parameters set to the corresponding current gmt value.
grammar
mktime (hour, minute, second, month, day, year, is_dst) Parameter description
hour optional. Prescribed hours.
minute optional. Prescribed minutes.
second optional. Prescribed seconds.
month optional. Specify the number of months.
day optional. Prescribed days.
year optional. Prescribed year. On some systems, the legal value is between 1901-2038. However, in PHP Tutorial 5 there is no such limitation.
is_dst Optional. Set to 1 if the time is during Daylight Saving Time (dst), set to 0 otherwise, and set to -1 if unknown.
As of 5.1.0, the is_dst parameter is deprecated. So you should use the new time zone handling features.