The following describes how to obtain the start time and end time of the current day. The code is as follows:Mktime (hour, minute, second, month, day, year, is_dst)Parameter descriptionHour is optional. The specified hour.Minute is optional. Minutes.
This article to introduce you to the use of PHP with Strtotime or mktime specified date data (this week, last week, this month, last month, this quarter) instance, I hope that the students will help you.Strtotime Definition and usageThe strtotime ()
Strtotime Definitions and usage
The strtotime () function resolves the date-time description of any English text to a Unix timestamp.
Grammar
Strtotime (time,now) parameter descriptionTime to specify the string to parse.Now is the time stamp used
The time () function returns the current date. The main function of the mktime () function is not to return the current time, but rather to format the time. Although writing mktime () alone does not add any parameters such as Echo mktime () and Echo
Mktime (hour, minute, second, month, day, year, is_dst) is the syntax of mktime. It is not difficult to write a timestamp code at a glance! The following code is a timestamp provided by most people on the Internet. At first glance, it can only be
The time () function returns the current time. The main function of the mktime () function is not to return the current time, but to format the time () function to return the current time. The main function of the mktime () function is not to return
In PHP, mktime is converted to milliseconds. In php, there are many ways to convert a time date into a timestamp (converted to milliseconds). The simplest way is to use time () we can directly obtain millisecond. if it is like, there are many ways
This article introduces the time function in PHP and Mktime () in the usage of the difference between the need for a friend to refer to it.In PHP programming, the Time Function times () returns the current time. The Mktime () function, instead of
The time () function returns the current period. The main function of the mktime () function is not to return the current time, but to format the time. Although the effect of writing mktime () without any parameters such as Echo mktime () and Echo
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.