Strictly speaking, this title may not be correct, because I first niang a bit, ISO8601 time format standard should resemble: 2016-01-18t23:41:00-08:00, and UTC time format is almost similar
In doing a project using a foreign API, the return time
ISO 8601 extended format YYYY-MM-DDTHH: mm: ss. sssZ example: (section circled with a red border)
Note: This format is supported only when ECMAScript 5 is compatible. Browsers that support this time format include IE9, Chrome, FireFox, Safari, etc.
Strictly speaking, this title may not be correct, because I first tried it. The ISO8601 time format standard should be similar to: 2016-01-18T23: 41: 00-08:00, the UTC time format is similar to using a foreign API for a project. The returned time
Recently imported data in PostgreSQL, encountering time problems, combing the time in the database:1. Basic Concepts1.1 Date: That is the commonly said year, month, and day, the following is a list of valid date formats:
Example
This is a creation in
Article, where the information may have evolved or changed.
1. Preface
Time includes time values and time zones, and there are incomplete and ambiguous times when you do not include timezone information. When transmitting or
The use of the date command1. Used to display a special time format that can be used to name the log file2. Used to set the time, but this is relatively small, because the general server is set to have automatic synchronization network
Date object: Number of milliseconds from January 1, 1970 (World Standard Time)This article refer to MDN do detailed finishing, convenient for everyone to refer to MDN
constructor function:
1.new Date (); Creates a Date object based on the current
13th. Time and Date 13.1 understanding time and date 13.1.1 time measurement1, Greenwich Mean time GMTThe midday of Greenwich Mean Time is when the sun reaches the highest point in the sky. It is now not used as a standard time.2. World Time UTThe
Of course, the date function of PHP is not possible to directly output the date of the Chinese, but you can use the following method to write a function.
The code is as follows
Copy Code
function today ()
Of course, PHP's date function is not possible to directly output Chinese date, but you can use this method to write a function of their own.Code to copy code as followsfunction today () {Date_default_timezone_set ("asia/chongqing");$a =date
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.