plusSeconds method

LocalDateTime plusSeconds(
  1. int seconds
)

Adds seconds to the time component.

Example:

final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final result = dt.plusSeconds(30);

Implementation

LocalDateTime plusSeconds(int seconds) => plus(Duration(seconds: seconds));