klyn.time.Timestamp.toDateTime
method
public toDateTime(timeZone as TimeZone = TimeZone.UTC) as DateTime:
DescriptionConverts this Timestamp to a DateTime object.
import klyn.time
timestamp = Timestamp.now
dateTime = timestamp.toDateTime()
print(dateTime.toString()) # Output: current date and time
ReturnsA 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 ```