RMNLIB

(NEWDATE)

BASE


INTEGER FUNCTION NEWDATE (dat1, dat2, dat3, mode)


ARGUMENTS


DESCRIPTION

Converts a date between two of the following formats: cmc date-time stamp(old or new), true date and printable date. The function returns 0 if there was no error, a non zero value otherwise.

EXAMPLE

Fortran
C

NOTES

- see incdatr for details on cmc date-time stamps
- it is recommended to always use this function to manipulate 
  dates
- if mode isn't in these values(-7,..,-2,-1,1,2,...,7) or if 
  arguments aren't valid, newdate has a return value of 1,
  if this happens, outputs can take any value
- modes -1,1,-2,2 are NOT INTENDED FOR GENERAL USE
  (they are really intended for INTERNAL use).
- A true date is an integer (possibly negative) that
  contains the number of 5 seconds intervals since
  1980/01/01 00H00. Negative values arise as this
  concept applies from 1900/01/01 00H00 to 2235/12/31
  23h59. Beyond these limits, extended true dates apply.
- An extended true date is an integer that contains
  the number of 3 hourly intervals since year 00/01/01
- See INCDATR for detail on CMC DATE-TIME STAMPS.

SEE ALSO

datec, difdat, difdatr, incdat, jdatec

Return to RPN Libraries home page