Difference between revisions of "DateTime"
From DGIWG
(Created page with "==== DateTime ==== <span style="color:#000000;">This is a combined Date and Time. The format is conformant to ISO 8601: </span><span style="color:#000000;">'''YYYY-MM-DDThh:m...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
<span style="color:#000000;">This is a combined Date and Time. The format is conformant to ISO 8601: </span><span style="color:#000000;">'''YYYY-MM-DDThh:mm:ssZ'''</span> | <span style="color:#000000;">This is a combined Date and Time. The format is conformant to ISO 8601: </span><span style="color:#000000;">'''YYYY-MM-DDThh:mm:ssZ'''</span> | ||
− | <div style="color:#000000;">Where:</div>* <div style="color:#000000;">YYYY is a four-digit code representing the year,</div> | + | <div style="color:#000000;">Where:</div> |
+ | * <div style="color:#000000;">YYYY is a four-digit code representing the year,</div> | ||
* <div style="color:#000000;">MM is a two digit code representing the month (01= January, etc.)</div> | * <div style="color:#000000;">MM is a two digit code representing the month (01= January, etc.)</div> | ||
* <div style="color:#000000;">DD is a two digit code representing the day of the month (01 through 31)</div> | * <div style="color:#000000;">DD is a two digit code representing the day of the month (01 through 31)</div> | ||
Line 14: | Line 14: | ||
− | <div style="color:#000000;">Although the DateTime definition allows for more precise temporal statements, the less precise values can also be used. For example, YY (century), YYYY (year), YYYY-MM( year, month), YYYY-MM-DD or YYYYMMDD (year, month, day), YYYY-MM-DDThh (year, month, day, hour), YYYY-MM-DDThh:mm (year, month, day, hour, minute), YYYY-MM-DDThh:mm:ss.d or YYYYMMDDThhmmss.d (year, month, day, hour, minute, second and decimals of seconds). The time zone should also be added, e.g. YYYY-M-DDThh:mm:ss.d+hh:mm.</div> | + | <div style="color:#000000;">Although the DateTime definition allows for more precise temporal statements, the less precise values can also be used. |
+ | <div> For example, YY (century), YYYY (year), YYYY-MM( year, month), YYYY-MM-DD or YYYYMMDD (year, month, day), YYYY-MM-DDThh (year, month, day, hour), YYYY-MM-DDThh:mm (year, month, day, hour, minute), YYYY-MM-DDThh:mm:ss.d or YYYYMMDDThhmmss.d (year, month, day, hour, minute, second and decimals of seconds). The time zone should also be added, e.g. YYYY-M-DDThh:mm:ss.d+hh:mm.</div> |
Latest revision as of 11:05, 18 October 2018
This is a combined Date and Time. The format is conformant to ISO 8601: YYYY-MM-DDThh:mm:ssZ
Where:
- YYYY is a four-digit code representing the year,
- MM is a two digit code representing the month (01= January, etc.)
- DD is a two digit code representing the day of the month (01 through 31)
- hh is a two digit code representing the hour (00 through 23) (am/pm NOT allowed)
- mm is a two digit code representing the minutes (00 through 59)
- ss is a two digit code representing the seconds (00 through 59)
- T indicates the start of the required time section
- Z represents the time zone designator in Coordinated Universal Time (UTC)
Although the DateTime definition allows for more precise temporal statements, the less precise values can also be used.
For example, YY (century), YYYY (year), YYYY-MM( year, month), YYYY-MM-DD or YYYYMMDD (year, month, day), YYYY-MM-DDThh (year, month, day, hour), YYYY-MM-DDThh:mm (year, month, day, hour, minute), YYYY-MM-DDThh:mm:ss.d or YYYYMMDDThhmmss.d (year, month, day, hour, minute, second and decimals of seconds). The time zone should also be added, e.g. YYYY-M-DDThh:mm:ss.d+hh:mm.