klyn.time.Timestamp.toDateTime
method

    public toDateTime(timeZone as TimeZone = TimeZone.UTC) as DateTime:

Description

Converts this Timestamp to a DateTime object.

Returns

A DateTime object representing the same point in time.

Example

    import klyn.time

    timestamp = Timestamp.now
    dateTime = timestamp.toDateTime()
    print(dateTime.toString())       # Output: current date and time