mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
8 lines
293 B
Lua
8 lines
293 B
Lua
local DateTime = require("@lune/datetime")
|
|
|
|
local TIME = "2023-08-27T05:54:19Z"
|
|
local dateTime = DateTime.fromIsoDate(TIME):toLocalTime()
|
|
local expectedDateTimeValues =
|
|
table.pack(string.match(TIME, "(%d%d%d%d)-?(%d?%d?)-?(%d?%d?)T(%d?%d?):(%d?%d?):(%d?%d?)Z$"))
|
|
|
|
-- TODO: Implement the test
|