DateTime.getSecond()
Signature
int getSecond(DateTime date)
Description
Gets the second on the DateTime Object passed as input.
Parameters
Name | Type | Description |
date | DateTime | A DateTime to get the second of. |
Returns
Type | Description |
int | The second on the date argument. |
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