klyn.time.DateTime.DateTime
constructor

    public DateTime(timestamp as Timestamp, timeZone as TimeZone = TimeZone.UTC):

Description

Constructs a DateTime from a timestamp.

Parameters

Parameter | Description
--- | ---
`timestamp` | Timestamp representing the date and time.
`timeZone` | Target timezone used for exposed components.

Example

    import klyn.time
    ts = Timestamp.now + Duration(hours=1)
    dt = DateTime(ts)