Skip to content

Commit beb421e

Browse files
eminencesharkdp
authored andcommitted
Add "UTC" variable
This adds a "UTC" variable, akin to the "local" variable to be used for more convenient timezone conversion.
1 parent cdb811b commit beb421e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numbat/modules/datetime/functions.nbt

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ fn format_datetime(format: String, input: DateTime) -> String
66
fn get_local_timezone() -> String
77
fn tz(tz: String) -> Fn[(DateTime) -> DateTime]
88
let local: Fn[(DateTime) -> DateTime] = tz(get_local_timezone())
9+
let UTC: Fn[(DateTime) -> DateTime] = tz("UTC")
910
fn unixtime(input: DateTime) -> Scalar
1011
fn from_unixtime(input: Scalar) -> DateTime

0 commit comments

Comments
 (0)