Berserk Docs
Scalar FunctionsDate & Time Functions

datetime_utc_to_local

Converts a UTC datetime to local time.

Syntax

datetime_utc_to_local(date, timezone)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1

print datetime_utc_to_local(datetime(2024-03-28), "Europe/Paris") // Viking siege of Paris in local time
print_0 (datetime)
null

On this page