klyn.time.Timestamp.toDateTime
method
public toDateTime(timeZone as TimeZone = TimeZone.local) as DateTime:
Description

Converts this Timestamp to a DateTime object.

Parameters
ParameterDescription
timeZoneTarget timezone used for exposed calendar components, defaulting to TimeZone.local.
Returns

A DateTime object representing the same point in time.

Example
import klyn.time

timestamp = Timestamp.now
dateTime = timestamp.toDateTime()
print(dateTime.toString())
assert dateTime.timeZone == TimeZone.local