UTCDateTime

The UTCDateTime function returns the current system zoned date time aligned to UTC.

Syntax

UTCDateTime()

Return Type

Zoned_date_time

Details

Use the CurDateTime function instead of UTCDateTime if you want the current date time relative to the Pacific timezone.

Examples

select UTCDateTime() as UTC, 
TypeNameOf(UTCDateTime()),
CurDateTime() as Pacific,
TypeNameOf(CurDateTime()) 
from Empty();

utcdatetime_01

Related Functions

CurDate

CurDateTime

UTCDate