Filter berdasarkan kategori:
Menampilkan 11 dari 35 fungsi dalam kategori Date & Time
PARSE_TIMESTAMP
Converts a string to a TIMESTAMP type with timezone support.
TIMESTAMPTIME
Creates a TIME value from components, or extracts the TIME portion from a timestamp or datetime.
TIMETIMESTAMP
Creates a TIMESTAMP value from a string, DATE, or DATETIME. TIMESTAMP values are always stored in UTC.
TIMESTAMPTIMESTAMP_ADD
Adds a time interval to a TIMESTAMP value. The result remains in UTC.
TIMESTAMPTIMESTAMP_DIFF
Calculates the difference between two TIMESTAMP values in the specified unit. Most accurate for measuring absolute durations.
INT64TIMESTAMP_SUB
Subtracts a time interval from a TIMESTAMP value. The inverse of TIMESTAMP_ADD.
TIMESTAMPTIMESTAMP_TRUNC
Truncates a TIMESTAMP to the specified granularity. Supports timezone for accurate local-time results.
TIMESTAMPTIME_ADD
Adds a time interval to a TIME value. Useful for work-hour calculations and scheduling.
TIMETIME_DIFF
Calculates the difference between two TIME values in the specified unit.
INT64TIME_SUB
Subtracts a time interval from a TIME value. The inverse of TIME_ADD.
TIMETIME_TRUNC
Truncates a TIME value to the specified granularity (MICROSECOND, MILLISECOND, SECOND, MINUTE, HOUR).
TIME