Unix time on a DOS or OS/2 computer
JC Liljegren (
d3e417@global2.pnl.gov)
Fri, 2 Sep 94 14:52:10 PDT
I have been working with netCDF files wherein time is recorded using
the Unix standard (i.e. seconds since 1-Jan-1970). Converting this to
more familiar representations (e.g. year, month, day, etc.) is no
problem on Unix systems using the built-in routine GMTIME.
However, I would now like to read and write netCDF files on a DOS or
OS/2 computer. These systems do not have built-ins for Unix time.
Does anyone have an algorithm (preferrably coded in FORTRAN) that will
convert between Unix time and more familiar representations?
Jim Liljegren