Unix time on a DOS or OS/2 computer

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


  • 1994 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: