klyn.time.DateTime.DateTime
constructor

    public DateTime(epochSeconds as Double, timeZone as TimeZone = TimeZone.UTC):

Description

Constructs a DateTime from an epoch timestamp expressed in seconds.

Parameters

- epochSeconds Number of seconds elapsed since 1970-01-01 00:00:00 UTC.
- timeZone Target timezone used for exposed components. ```klyn import klyn.time dt = DateTime(0.0, TimeZone.UTC) assert dt.toString() == "1970-01-01 00:00:00" ```