[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12246: [patch] iso 8601 specifies zero padding, not space padding
From: |
Ian Price |
Subject: |
bug#12246: [patch] iso 8601 specifies zero padding, not space padding |
Date: |
Tue, 21 Aug 2012 12:21:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
In srfi 19, there is convenience format directives for various ISO 8601
date/time formats. i.e.
~2 ISO-8601 time+zone, `~k:~M:~S~z'
~3 ISO-8601 time, `~k:~M:~S'
~4 ISO-8601 date/time+zone, `~Y-~m-~dT~k:~M:~S~z'
~5 ISO-8601 date/time, `~Y-~m-~dT~k:~M:~S'
However, ~k is incorrect here, as iso 8601 specifies that hours have two
digits (i.e. 9am is "09") which means the ~H directive.
Funnily enough, if you look in srfi-19.scm itself you even see
(define iso-8601-date-time-format "~Y-~m-~dT~H:~M:~S~z")
note, the ~H.
I've attached a patch to fix these.
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
0001-ISO-8601-time-format-specifies-zero-padding-for-hour.patch
Description: srfi-19 patch
- bug#12246: [patch] iso 8601 specifies zero padding, not space padding,
Ian Price <=