转载:https://www.obj-sys.com/asn1tutorial/node14.html
GeneralizedTime
Type GeneralizedTime takes values of the year, month, day, hour, time, minute,second, and second fraction in any of three forms.
- Local time only. ``YYYYMMDDHH[MM[SS[.fff]]]'', where the optional fff is accurate to three decimal places.
- Universal time (UTC time) only. ``YYYYMMDDHH[MM[SS[.fff]]]Z''.
- Difference between local and UTC times. ``YYYYMMDDHH[MM[SS[.fff]]]+-HHMM''.
The type notation is the keyword GeneralizedTime. For example, if
CurrentTime ::= GeneralizedTime
then any of the following three values of CurrentTime are valid: ``20001231235959.999'' is 1/1000 second before the end of the 20th century local time; ``20001231205959.999Z'' is the universal time three hours different from the above local time; and ``20001231235959.999+0300'' indicates the local time is three hours ahead of universal time.
本文详细介绍了ASN.1中通用时间类型(GeneralizedTime)的三种表示形式:本地时间、UTC时间以及本地与UTC时间的时差。通过实例展示了如何表示如2000年12月31日23:59:59.999等不同时间,并解释了这些时间值的含义。
748

被折叠的 条评论
为什么被折叠?



