mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
11 lines
299 B
Lua
11 lines
299 B
Lua
local DateTime = require("@lune/datetime")
|
|
|
|
assert(
|
|
DateTime.fromIsoDate("2023-08-26T16:56:28Z") ~= nil,
|
|
"expected DateTime.fromIsoDate() to return DateTime, got nil"
|
|
)
|
|
|
|
assert(
|
|
DateTime.fromIsoDate("1929-12-05T23:18:23Z") ~= nil,
|
|
"expected DateTime.fromIsoDate() to return DateTime, got nil"
|
|
)
|