Misplaced Pages

GeneralizedTime

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Time format
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "GeneralizedTime" – news · newspapers · books · scholar · JSTOR (October 2012) (Learn how and when to remove this message)
The topic of this article may not meet Misplaced Pages's general notability guideline. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.
Find sources: "GeneralizedTime" – news · newspapers · books · scholar · JSTOR (October 2012) (Learn how and when to remove this message)
(Learn how and when to remove this message)

A GeneralizedTime is a time format in the ASN.1 notation. It consists of a string value representing the calendar date, as defined in ISO 8601, a time of day with an optional fractional seconds element and the optional local time differential factor as defined in ISO 8601.

In contrast to the UTCTime class of ASN.1 the GeneralizedTime uses a four-digit representation of the year to avoid possible ambiguity. Another difference is the possibility to encode time information of any wanted precision via the fractional seconds element.

Examples from ITU-T X.680:

"19851106210627.3"
local time 6 minutes, 27.3 seconds after 9 pm on 6 November 1985.
"19851106210627.3Z"
coordinated universal time as above.
"19851106210627.3-0500"
local time as in the first example, with local time 5 hours retarded in relation to coordinated universal time.

ASN.1 also defines a DateAndTime time format widely used in SNMP, that includes separator characters and does not pad the fields (e.g., "1985-11-6,21:6:27.3,-5:0").

See also

Categories: