API Reference › DateTime › DateTime.from
method

DateTime.from

DateTime.from(year, month, day, hour, minute, second) -> int

Builds a DateTime (seconds since 1970, UTC) from calendar and clock parts. The inverse of the component readers below.

Example

program Demo {
  handler Step phase Update {
    let t = DateTime.from(2000, 1, 1, 12, 30, 15)
  }
}
← All symbols