AnyLogic
Expand
Font size

getSecond

getSecond()

Description

Returns the second within the minute of the current model date with respect to the start time/date and the model time unit.

For example, at 10:04:15.250 PM the result is 15.

Result

Type Description
int The second within the minute of the current model date with respect to the start time/date and the model time unit.

getSecond(Date date)

Description

Returns the second component of the specified date value.

For example, at 10:04:15.250 PM the result is 4.

Parameter

Name Type of value Description
date java.util.Date A date, presented in the form of the Date Java class.

Result

Type Description
int The second component of the specified date value.
How can we improve this article?