[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can `format-time-string' produce full/extended ISO 8601 times?
From: |
Edward O'Connor |
Subject: |
Re: Can `format-time-string' produce full/extended ISO 8601 times? |
Date: |
Thu, 6 Aug 2009 11:47:04 -0700 |
> From what I am able to gather the "%z" of the `format-time-string'
> spec doesn't produce a colon delimited UTC-offset/ZONE and provides
> only for production of the time-numoffset as:
FWIW, I have the following code or variations thereof sprinkled
throughout several libraries I maintain:
(let ((stamp (format-time-string "%Y-%m-%dT%H:%M:%S%z" time)))
(format "%s:%s" (substring stamp 0 -2) (substring stamp -2)))
Adding the ability for format-time-string to produce the tz colon
would be great.
Ted