• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2.. _useful.GeneralizedTime:
3
4.. |ASN.1| replace:: GeneralizedTime
5
6.. |encoding| replace:: iso-8859-1
7
8|ASN.1| type
9------------
10
11.. autoclass:: pyasn1.type.useful.GeneralizedTime(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
12   :members: isValue, isSameTypeWith, isSuperTypeOf, tagSet, asDateTime, fromDateTime
13
14   .. note::
15
16
17       The |ASN.1| type models a character string representing date and time
18       in many different formats.
19
20       Formal syntax for the *GeneralizedTime* value is:
21
22       * **YYYYMMDDhh[mm[ss[(.|,)ffff]]]** standing for a local time, four
23         digits for the year, two for the month, two for the day and two
24         for the hour, followed by two digits for the minutes and two
25         for the seconds if required, then a dot (or a comma), and a
26         number for the fractions of second or
27
28       * a string as above followed by the letter “Z” (denoting a UTC
29         time) or
30
31       * a string as above followed by a string **(+|-)hh[mm]** denoting
32         time zone offset relative to UTC
33
34       For example, *20170126120000Z* stands for YYYYMMDDHHMMSSZ.
35
36   .. automethod:: pyasn1.type.useful.GeneralizedTime.clone(self, value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
37   .. automethod:: pyasn1.type.useful.GeneralizedTime.subtype(self, value=NoValue(), implicitTag=TagSet(), explicitTag=TagSet(),subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
38