DateTimeZone.UtcNow
Returns the current date and time in UTC (the GMT timezone).
Syntax
DateTimeZone.UtcNow(
) as datetimezone
Remarks
Returns the current date and time in UTC (the GMT timezone).
Examples
Example #1
Get the current date & time in UTC.
DateTimeZone.UtcNow()
Result:
#datetimezone(2011, 8, 16, 23, 34, 37.745, 0, 0)
Category
DateTimeZone