In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces PHP date format leap year, week, day is how, the content is very detailed, interested friends can refer to, I hope to help you.
PHP itself is a simple and powerful language, PHP date format or more commonly used, so I studied the PHP date format, here to share with you, I hope useful to you. PHP has core features such as powerful string and array processing capabilities, as well as greatly improved support for object-oriented programming (PHP 5 +).
Using standard and optional extension modules, PHP applications can connect to dozens of databases such as MySQL or Oracle, draw, create PDF files, and create parsed XML files. You can also use C to write your own PHP extensions. For example, provide a PHP interface function in an existing code base. You can also run PHP under Windows, use COM to control other Windows applications such as Word and Excel, or use ODBC to connect to databases.
1, leap year, week, day
echo date('L');
Leap year: 0
echo date('l');
Today is: Tuesday
echo date('D');
Today is: Tue
Capital L indicates whether the year is a leap year, Boolean value, returns 1 if true, otherwise 0; lowercase l indicates the day of the week in English (Tuesday); and capital D indicates the day of the week in English (Tue).
echo date('w');
Today's Week: 2
echo date('W');
This week is the 06th week of the year. Lower-case w indicates the day of the week. Numeric form indicates that capital W indicates the number of weeks in the year.
echo date('t');
This month is 28 days.
echo date('z');
Today is the 36th day of the year, lowercase t indicates the number of days in the current month, lowercase z indicates the number of days in the year.
2 and others.
echo date('T');
UTC
A capital T indicates the server's time locale
echo date('I');
0
Capital I indicates whether it is daylight saving time, if true returns 1, otherwise 0
echo date('U');
1170769424
A capital U represents the total number of seconds since January 1, 1970, which is the UNIX timestamp of the Unix epoch.
echo date('c');
2007-02-06T14:24:43+00:00
Lowercase c represents an ISO8601 date in the date format Y-MM-DD, separated by the letter T from the date and time in the time format HH:MM:SS, and time zones are represented using deviations from Greenwich Mean Time (GMT).
echo date('r');
Tue, 06 Feb 2007 14:25:52 +0000
Lowercase r indicates RFC822 date. The small date() function shows the powerful features and charming charm of PHP, and then compare ASP, hehe.
About PHP date format leap year, week, day is how to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.