[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #HZE-557576]: udunits 2 problem with time parsing


> I'm having a problem using the following call to udunits2:
> ut_unit epoch = ut_parse(uds, "seconds since 1970-01-01T00:00:00Z",
> epoch comes back NULL.
> This call does work if I use the string:
> "seconds since 1970-01-01 00:00:00"
> Should the first version work?

I think the ISO standard says that the "T" separator should only
be used when the rest of the timestamp doesn't contain any dashes
or colons.

I think the package should be more generous in its parsing,
however, so I'll see about fixing this.

Steve Emmerson

Ticket Details
Ticket ID: HZE-557576
Department: Support UDUNITS
Priority: Normal
Status: Closed