[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Generalized Time/UTC Time need leap seconds



Hallvard,

Hallvard B Furuseth wrote:
> I wrote:
> > [Syntaxes] 4.3.13 (Generalized Time) says:
> > 
> >       second  = %x30-36 %x30-39                        ; 
> "00" to "59"
> > 
> > That should be "00" to "60", since Coordinated Universal Time has
> > leap seconds.  See e.g. <http://tycho.usno.navy.mil/systime.html>.
> 
> BTW, I just noticed that the current syntax, and that for minutes,
> allow 00-69, not 00-59.

Good pickup. I've changed the range of the first digit to %x30-35.
The UTCTime type in X.680 doesn't allow for leap seconds (60 seconds
is an illegal value). I still have to check whether GeneralizedTime
allows it.

I've also fixed an error in the ABNF for days "30" and "31".

Regards,
Steven

>  Try
> 
>       second  = %x30-35 %x30-39 / %x36 %x30            ; "00" to "60"
> 
> -- 
> Hallvard
>