DADiSP Worksheet Functions > Function Categories > Time and Date Functions > DECTIME

 

DECTIME

Purpose:

Converts a decimal time series in HHMM.SS format to time data.

Syntax:

DECTIME(timeser, wrap, "date")

timeser

-

A series of decimal time values where 1715.10 represents the time 17:15:10.

wrap

-

Optional, an integer flag. Day wrap option:

0:

do not wrap days.

1:

wrap sequential time changes from 23:59:59 to 0:0:0 to the next day (default).

"date"

-

Optional. A string, the starting date in dd/mm/yy format. Defaults to the date of the time series.

Returns:

A series of time values.

Example:

W1: {1812.56, 2030.10, 110.00, 1310.00}

W2: dectime(w1)

 

W2 contains the time values 18:12:56, 20:30:10, 1:10:00, 13:10:00

Remarks:

The decimal time value are in the format HHMM.SS where HH ranges from 0 to 23, MM ranges from 0 to 59 and SS ranges from 0 to 59. Thus, the minimum time value is 0.0 (midnight) and the maximum is 2359.59 (one minute before midnight).

See Also:

DECDATE

DTXY

JULYMD

STRJUL

STRTOD

TODSTR

UNIXDT

XYDT