klyn.time.Timestamp.toDateTime
method
public toDateTime(timeZone as TimeZone = TimeZone.UTC) as DateTime:
Description
Converts this Timestamp to a DateTime object.
import klyn.time

timestamp = Timestamp.now
dateTime = timestamp.toDateTime()
print(dateTime.toString())       # Output: current date and time
Returns
A DateTime object representing the same point in time. ``` import klyn.time timestamp = Timestamp.now dateTime = timestamp.toDateTime() print(dateTime.toString()) # Output: current date and time ```