Like Matlab, IDL also contains date and time functions that allow for specific requirements.
Function Name Function description
Bin_date-converts ASCII date/time string to binary string.-standard date time string converted to 6 element Date array
Caldat-converts Julian date to month, day, year.-Ru Day
Call_external-displays a calendar for a given month or year.-to display calendars on an input date
Julday-returns Julian days number for given month, day, and year.-to Julian Day
Systime-returns the current system time as either a string, the number of seconds, or as a Julian date.-returns
Tic-start the Tick/tock clock for measuring elapsed time.-calculation takes time
Toc-stop the Tick/tock clock for measuring elapsed time.
Timegen-returns an array of Julian Date/time values.-get a Julian day format
Timestamp-returns a date/time string in ISO-8601 format.-get ISO-8601 format time
1 - 9 , $ 2 4 One - the )3PRINT, timestamp_string45 >09 -04t11:15Z
Timestamptovalues-returns the date and time, given a date/time string in ISO-8601 format.-to obtain dates and times based on ISO-8601 format time
1Timestamp_string ='2012-09-04t11:25:15-06:00'2 3 Timestamptovalues, timestamp_string, $4Year=year, Month=month, day=Day , $5Hour=hour, minute=minute, $6Second=second, offset=Offset7 PRINT, month, day, year, hour, minute, second, offset8 9>9 4 - One - 15.000000-6.000000
IDL Date-time function collation