API Reference › DateTime › DateTime.add
method

DateTime.add

DateTime.add(dt, span) -> int

The instant span seconds after dt. Pair it with the Duration constructors to express the offset in real units.

Example

program Demo {
  handler Step phase Update {
    let ready_at = DateTime.add(Time.now(), Duration.hours(3))
  }
}
← All symbols