From 3f13483f815eca28bfd4ab3e8ff4e61a86ead0ab Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 12 Nov 2007 20:01:58 +0000 Subject: Timestamp notes svn path=/scripts/README; revision=1277 --- scripts/README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/README b/scripts/README index d22bd2f5..b5cdb458 100644 --- a/scripts/README +++ b/scripts/README @@ -58,6 +58,17 @@ Current TO DO list: used in ASN.1, and the timestamps used in MySQL. Need a unifying class to hide all this nastiness. + POW.pkix provides conversion functions for ASN.1. MySQL timestamps + appear to map to Python datetime objects. One can convert between + datetime and time (seconds since epoch) objects using: + + time_object = time.mktime(datetime_object.timetuple()) + datetime_object = datetime.datetime.fromtimestamp(int(time_object)) + + if one is willing to discard fractional seconds (which we probably + are in this case, as they're not useful with ASN.1). No doubt there + would be a way to preserserve fractional seconds if we cared. + - Subsetting (req_* attributes in up-down protocol) - Revocation and CRL generation -- cgit v1.2.3