Skip to content

std::timestamp

func to_date

func to_date(timestamp: Timestamp, time_zone: Text): Date

Computes the local date of a timestamp at a timezone.

func sub

func sub(Timestamp, Timestamp): Time

Computes the elapsed Time between two Timestamps. Result is a - b: positive when a is later than b.