Week number - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Week number (/showthread.php?tid=2553) |
Week number - Mathieu - 30.03.2020 Hello, I would like the week number of the year on my script but the function os.date('w') doesn't work. Is anyone has a solution please ? Thank you very much RE: Week number - Joep - 30.03.2020 (30.03.2020, 15:26)Mathieu Wrote: Hello,week = os.date("%V") log(week) if (week % 2 == 0) then log("even week") else log("odd week") end RE: Week number - Mathieu - 30.03.2020 (30.03.2020, 15:28)Joep Wrote: Perfect ! Thank you very much |