What do the parameters in mktime brackets mean? I don't know much about them, but I also read the manual. what should I do?
Source: Internet
Author: User
What do the parameters in mktime brackets mean? I don't know much about them. I also read the manual mktime (, 0, date ('M'), date ('D '), date ('Y');, intmktime ([int $ hour [, int $ minute [, what do the parameters in the brackets of mktime mean? I can't quite understand it and read the manual.
Mktime (0, 0, 0, date ('M'), date ('D'), date ('Y '));
------ Solution --------------------
Int mktime ([int $ hour [, int $ minute [, int $ second [, int $ month [, int $ day [, int $ year [, int $ is_dst])
The manual makes it clear that the parameters of the six integer parameters, namely, hour, minute, second, month, day, and year, can be omitted from right to left. the default value is the current value.
Your code returns the timestamp of the early morning of the current day. In fact, the last three parameters can be omitted.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.