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.
Ryan,
Works for me:
$ udunits2
You have: milliseconds since 1970-01-01 00:00 UTC
You want:
(0.001 s) @ 19700101T000000.0000000 UTC
You have: ^D
What version are you using?
> Hi,
>
> We have code that's parsing for a date period, ostensibly a udunits
> compatible string, at CalendarPeriod.java:70. It currently will fail to
> parse:
>
> "milliseconds since 1970-01-01 00:00 UTC"
>
> because it only looks for "ms", "msec", and "millisec". Is there there some
> reason the actual UDunits conforming string "millisecond" is missing here?
>
> Ryan
>
> --
> Ryan May
> Software Engineer
> UCAR/Unidata
> Boulder, CO
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: XUE-585649
Department: Support UDUNITS
Priority: Normal
Status: Closed