DateTime.getSecond()

Signature

int getSecond(DateTime date)

Domain

action, condition

Description

Gets the second on the DateTime Object passed as input.

Parameters

NameTypeDescription
dateDateTimeA DateTime to get the second 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