DateTime.getSecond()

Signature

DateTime getSecond(DateTime date)

Domain

action, condition, query

Description

Gets the second on the DateTime Object passed as input.

Parameters

NameTypeDescription
dateDateTimeA DateTime to get the hour of.

Returns

TypeDescription
intThe second on the date argument.

Cautions

none

Example


DateTime dateNow = DateTime.now ();
int second = DateTime.getSecond (dateNow);

Result is:
second contains: 4 if it is "2004-03-11 14:59:04" now