This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Record of wrong trends
#11
You can use a scheduled script that runs daily at some time close to midnight.
This example adds 1 hour to the current time and checks the day number. If it is 1 it means that the current day is the last day of the month.
Code:
date = os.date('*t', os.time() + 3600) -- 1 hour from now
if date.day == 1 then
-- do something
end
Reply


Messages In This Thread
Record of wrong trends - by davidchispas - 03.09.2021, 10:30
RE: Record of wrong trends - by admin - 03.09.2021, 10:35
RE: Record of wrong trends - by davidchispas - 06.09.2021, 15:48
RE: Record of wrong trends - by davidchispas - 20.09.2021, 08:32
RE: Record of wrong trends - by Daniel - 27.09.2021, 08:12
RE: Record of wrong trends - by davidchispas - 27.09.2021, 10:26
RE: Record of wrong trends - by davidchispas - 06.10.2021, 08:09
RE: Record of wrong trends - by admin - 06.10.2021, 08:11
RE: Record of wrong trends - by admin - 06.10.2021, 08:48
RE: Record of wrong trends - by davidchispas - 06.10.2021, 09:11
RE: Record of wrong trends - by admin - 08.10.2021, 07:32
RE: Record of wrong trends - by davidchispas - 02.12.2021, 09:40
RE: Record of wrong trends - by Daniel - 02.12.2021, 09:48
RE: Record of wrong trends - by davidchispas - 02.12.2021, 09:59
RE: Record of wrong trends - by Daniel - 02.12.2021, 10:10
RE: Record of wrong trends - by davidchispas - 02.12.2021, 10:34
RE: Record of wrong trends - by Daniel - 02.12.2021, 10:40
RE: Record of wrong trends - by davidchispas - 02.12.2021, 11:04

Forum Jump: