ietf-openpgp
[Top] [All Lists]

Re: [openpgp] time representation in OpenPGP

2016-07-03 08:57:49
On 07/03/2016 03:48 PM, Salz, Rich wrote:

A time field is an unsigned four-octet number containing the
number of seconds elapsed since midnight, 1 January 1970 UTC.

Isn't that the classic Unix time_t, which expires in 2038?

signed vs unsigned integers (although iirc it isn't explicitly defined
for time_t in C)


I suggest we use ASN1 generalized time (which has only a couple of
bytes overhead) or ISO 8601 profiled to be like the ASN1 format:
YYYY-MM-DD-HH:MM:SS.sss with fraction optional.


ASN1 sounds complex in this case, some form of ISO8601 variant might be
helpful.

Alternatively expanding the size of the value from 32 bits to 64 bits
might be easier to deal with for backwards compatibility reasons.

-- 
----------------------------
Kristian Fiskerstrand
Blog: https://blog.sumptuouscapital.com
Twitter: @krifisk
----------------------------
Public OpenPGP certificate at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3
----------------------------
"Happiness in intelligent people is the rarest thing I know."
(Ernest Hemingway)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openpgp mailing list
openpgp(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/openpgp