According to the current date, How I could know if it the hour is in summer time in Lua.
For example, the value in France would be actually true (CEST is currently used). During winter it would be false.
Forget is this is too specific: I am just expecting the rules for France. But at this point, I couldn't know if Lua has a native function.
The list of available builtins functions is here.
The table returned by
os.date("*t", someday)
has a fieldisdst
representing if it's daylight saving time.Getting the current time is easier, calling
os.time
without arguments will return the current date and time.