ISO 8601: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
==HTML== | ==HTML== | ||
{| class="wikitable" style="width:10px" | {| class="wikitable" style="width:10px" | ||
! | |||
! | ! 1 | ||
! | ! 2 | ||
! 3 | |||
! 4 | |||
! 5 | |||
|- | |- | ||
| | | 1582-10-15 | ||
| | | 1582‑10‑15 | ||
| | | 1582‑10‑15 | ||
| <nobr>1582-10-15</nobr> | |||
| <span style="white-space: nowrap;">1582-10-15</span> | |||
|} | |} | ||
*@1 using - (U+002D hyphen-minus) | |||
*@2 using "&#X;" with X=8209 (U+2011 non-breaking hyphen) - search for 1582-10-15 (method 1) possibly does not match | |||
*@3 using the sign itself (U+2011 non-breaking hyphen) - search for 1582-10-15 (method 1) possibly does not match | |||
*@4 using nobr-tag around method 1 | |||
*@5 using span style="white-space: nowrap;" | |||
==Glibc== | |||
http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html | |||
%F = %Y-%m-%d | |||
==PHP== | |||
http://php.net/manual/en/function.date.php | |||
Y-m-d | |||
*Y, m, d as in Glibc | |||
*F differs from Glibc and means "A full textual representation of a month" |
Latest revision as of 2014-11-14T05:03:09
HTML
1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|
1582-10-15 | 1582‑10‑15 | 1582‑10‑15 | <nobr>1582-10-15</nobr> | 1582-10-15 |
- @1 using - (U+002D hyphen-minus)
- @2 using "&#X;" with X=8209 (U+2011 non-breaking hyphen) - search for 1582-10-15 (method 1) possibly does not match
- @3 using the sign itself (U+2011 non-breaking hyphen) - search for 1582-10-15 (method 1) possibly does not match
- @4 using nobr-tag around method 1
- @5 using span style="white-space: nowrap;"
Glibc
http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
%F = %Y-%m-%d
PHP
http://php.net/manual/en/function.date.php
Y-m-d
- Y, m, d as in Glibc
- F differs from Glibc and means "A full textual representation of a month"