second

Description

Returns the seconds of the provided date: 0-59.

Parameters

Return Type

Number

Examples

Example 1

print("Second is " + second(currentDate()));

Example 2

date varDateTime = "2011-08-17T18:30:55"; print("Second is " + second(varDateTime));

Print Second is 55

See also