>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  DT_TM_INC






      Increment a date/time by a given number of seconds.


Calling Sequence

      dt_tm_inc, t, s


      s = Time in seconds to add. in

Keyword Parameters


        FORMAT = format string. Allows output date to be customized.
        The default format string is 'y$ n$ d$ h$:m$:s$'
            The following substitutions take place in the format string:
        Y$ = 4 digit year.
        y$ = 2 digit year.
        N$ = full month name.
        n$ = 3 letter month name.
        d$ = day of month number.
        W$ = full weekday name.
        w$ = 3 letter week day name.
        h$ = hour.
        m$ = minute.
        s$ = second.
        @ = Carriage Return.
        ! = Line feed.
        Some examples: 'h$:m$:s$' -> 09:12:04,
        'd$ n$ Y$' -> 12 Jan 1991, 'd$D h$h' -> 3D 2h, ...


      t = date and time string. in, out
        date/time strings are strings like 21-Jan-1989 14:43:03
        The format of the date and time strings is flexible, see date2ymd.

Common Blocks


Modification History

      R. Sterner. 18 Apr, 1989.
      RES 25 Oct, 1991 --- renamed and rewrote from incsec_datetime.
      Johns Hopkins University Applied Physics Laboratory.
  Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us