GeneralizedTime

GeneralizedTime is an ASN.1 notation time type represented as a string. It encodes the calendar date and time of day, optionally including fractional seconds and an optional time zone offset.[1] While its structure is conceptually aligned with ISO 8601, the format is compact and does not use ISO 8601’s separators.

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").

References

  1. ^ Adams, C.; Farrell, S.; Kause, K.; Maher, P.; Polk, W.; Thompson, T. (April 2002). Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. RFC. IETF. doi:10.17487/RFC3280. Retrieved 2026-03-05.{{citation}}: CS1 maint: multiple names: authors list (link)

See also

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.