3.11.6 ANYTIM2INTS


next up previous contents
Next: 3.11.7 ANYTIM2EX Up: 3.11 Time Routines and Previous: 3.11.5 FMT_TIMER

3.11.6 ANYTIM2INTS

ANYTIM2INTS takes any of the three representations and returns a structure with the internal representation. The structure has a .TIME and a .DAY field. An example is:
IDL> a = anytimts('23-jun-92 3:00')
   This routine has an optional keyword input to allow the user to offset the input time by some number of seconds. If the input is an array of times, then the offset can be a scalar value or it can be an array of offsets which is the same length as the input. For example,
IDL> a = anytimts(roadmap, off=60.5)

IDL> a = anytimts(roadmap, off=off)
The following command will set up a structure which has has the dates of 100 Mondays starting on 7-Jan-91 (since 7-Jan-91 is a Monday and there are 86400 seconds in a day). The second example sets up a 500 element array with times separated by 90 seconds.
IDL> dates = anytimts('7-jan-91', off=findgen(100)*86400.*7)

IDL> tt = anytimts(!stime, off=findgen(500)*90.)


ydac@mssly1.mssl.ucl.ac.uk