SYSTIME

The SYSTIME function returns the current system time as either a string that contains the current day, date and time, or as the number of seconds elapsed since January 1, 1970.

Calling Sequence

Result = SYSTIME( Arg )

Arguments

Arg

If Arg is present and nonzero, the number of seconds elapsed since January 1, 1970 is returned as a double-precision, floating-point value. The elapsed time is computed from January 1, 1970, GMT.

Otherwise, if Arg is zero, a scalar string containing the current local date/time in standard 24-character system format is returned. This format is:

DOW MON DD HH:MM:SS YEAR

where DOW is the day of the week, MON is the month, DD is the day of the month, HH is the hour, MM is the minute, SS is the second, and YEAR is the year.

Examples

PRINT, STRMID(SYSTIME(0), 0, 3) ; Print the day of the week.

The following program fragment could be used to determine the time required by a 16,384 point FFT:

T = SYSTIME(1)

A = FFT(FINDGEN(16384), -1)

PRINT, SYSTIME(1) - T, ' Seconds'

See Also

CALDAT , CALENDAR , JULDAY