Michael Fesser wrote:
Use ISO-format: YYYY-MM-DD HH:MM:SS
That isn't a representation specified by ISO8601, although
it closely resembles one and might be less odd looking to
some people than any standard representation. On his page
(see
http://www.cs.tut.fi/~jkorpela/iso8601.html ), Jukka
Korpela mentions that 'people who otherwise use ISO 8601
might deviate from it here by using a space', as you did
above; but note that he recommends a combined date and time
of the day representation that strictly abides by ISO8601.
The standard clearly states that spaces are not used in its
representations (sec. 4.4). More, the time designator ('T')
may be omitted only by agreement between the parties
involved, where the date and time of the day representation
is unambiguous.
The complete, extended (that is, including separators)
representation of a calendar date* and local time of the day
is (contained in square brackets): [YYYY-MM-DDThh:mm:ss].
If readability comes second to compression though, the
basic format (that is, excluding separators) can be used:
[YYYYMMDDThhmmss].
Of course a local time itself may not always be appropriate.
To instead express a UTC time, append the UTC designator
('Z') to the time representation: [YYYY-MM-DDThh:mm:ssZ].
To express the difference between local time and UTC, append
to the time representation [±hh:mm] (extended format),
[±hhmm] (basic format), or [±hh] if the difference is an
integral number of hours. [hh] and [mm] indicate the
difference in hours and minutes respectively: e.g. [2004-10-
21T20:28:30+01:00] was when I composed this article; that
is, Thu, 21 Oct 2004 19:28:30 GMT.
There's more to it. If you have time, read
http://hydracen.com/dx/iso8601.htm
* Besides calendar dates, where the day is identified by the
day of the month of the year, the standard also specifies
representations for ordinal dates, where the day is
identified by the day of the year; and week dates, where the
day is identified by the day of the week of the year.
HAGW!
--
Jock