This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mike, > I'm having a problem using the following call to udunits2: > > ut_unit epoch = ut_parse(uds, "seconds since 1970-01-01T00:00:00Z", > UT_ASCII); > > 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. Regards, Steve Emmerson Ticket Details =================== Ticket ID: HZE-557576 Department: Support UDUNITS Priority: Normal Status: Closed