Berserk Docs
Scalar FunctionsDate & Time Functions

datetime_local_to_utc

Converts a local datetime to UTC.

Syntax

datetime_local_to_utc(date, timezone)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1

print datetime_local_to_utc(datetime(2024-06-08 06:00), "Europe/London") // Lindisfarne raid dawn in UTC
print_0 (datetime)
null

On this page