Add calendar:is_holiday()

This commit is contained in:
Evgeny
2024-11-11 08:58:20 +07:00
parent b007f6b756
commit e828444426
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
function on_resume()
local unix_time = 1735698800 // 01.01.2025
local date_str = os.date("%d.%m.%Y", unix_time)
ui:show_text(date_str.." is holiday: "..tostring(calendar:is_holiday(unix_time)))
end