addSeconds method

LocalDateTime addSeconds(
  1. int seconds
)

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

  • seconds: The number of seconds to add

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

Implementation

LocalDateTime addSeconds(int seconds) => TimePeriodField.seconds.addDateTime(this, seconds);