NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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
netcdfgroup
archives: