Python pyasn1.type.useful.UTCTime() Examples
The following are 1
code examples of pyasn1.type.useful.UTCTime().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pyasn1.type.useful
, or try the search function
.
Example #1
Source File: time_test.py From aurasium with GNU General Public License v3.0 | 6 votes |
def testConvert(self): utctime = useful.UTCTime('120614235959Z') t = Time() t.setComponentByName('utcTime', utctime) t_str = time.asctime(time.gmtime(t.ToPythonEpochTime())) self.assertEquals(t_str, 'Thu Jun 14 23:59:59 2012')