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

Parameter | Description
--- | ---
`epochSeconds` | Number of seconds elapsed since 1970-01-01 00:00:00 UTC.
`timeZone` | Target timezone used for exposed components.

Example

    import klyn.time
    dt = DateTime(0.0, TimeZone.UTC)
    assert dt.toString() == "1970-01-01 00:00:00"