addSeconds method

LocalTime addSeconds(
  1. int seconds
)

Returns a new LocalTime representing the current value with the given number of seconds added.

If the value goes past the start or end of the day, it wraps - so 11:59pm plus 120 seconds is 12:01am, for example.

  • seconds: The number of seconds to add

Returns: The current value plus the given number of seconds.

Implementation

LocalTime addSeconds(int seconds) => TimePeriodField.seconds.addTime(this, seconds);