Investment Studio > Expressions > Functions > Date & Time > SECOND

integer second(time argument)

Returns the second encoded in the argument. The result is an integer ranging from 0 to 59.

Automatic type conversion allows the use of a time string as argument instead of an explicit date value.

Examples

=second(0.81424)

and

=second(32791.81424)

both equal 30; assuming standard US time format settings,

=second("3:45:30 PM")

equals 30, too.

See also hour, minute, month, now, time, timevalue.