GeneralizedTime

本文详细介绍了ASN.1中通用时间类型(GeneralizedTime)的三种表示形式:本地时间、UTC时间以及本地与UTC时间的时差。通过实例展示了如何表示如2000年12月31日23:59:59.999等不同时间,并解释了这些时间值的含义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转载: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.

  1. Local time only. ``YYYYMMDDHH[MM[SS[.fff]]]'', where the optional fff is accurate to three decimal places.
  2. Universal time (UTC time) only. ``YYYYMMDDHH[MM[SS[.fff]]]Z''.
  3. 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值