php function mktime — Get Unix timestamp for a date.

Returns the Unix timestamp corresponding to the arguments given. This timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified.

Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time.

int $hour = date("H") int $minute = date("i")  int $second = date("s") 
int $month = date("n") int $day = date("j") int $year = date("Y")
mktime(H, M, S, M, D, Y));
mktime(0, 0, 0, 12, 32, 1997));

Note : H, M, S, M, D, Y must need to be int.

Leave a Reply

Your email address will not be published. Required fields are marked *