Home Contact Us Site Map  
 
       
    next up previous contents
Next: 8.3.4 Using the calendar Up: 8.3 The calendar package Previous: 8.3.2 Format of calendar   Contents

8.3.3 Calendar dates and time intervals

Subtracting calendar dates yields time intervals. Time intervals have the following format:

c         integer datediff(4)
c
c           datediff(1) = # Days
c           datediff(2) = hhmmss
c           datediff(3) =      0
c           datediff(4) =     -1

Such time intervals can be added to or can be subtracted from calendar dates. Time intervals can be added to and be subtracted from each other.



mitgcm-support@dev.mitgcm.org
Copyright © 2002 Massachusetts Institute of Technology