It is currently June 5th, 2023, 8:01 pm

LuaCalendar

Clocks and timer skins
User avatar
pds
Posts: 69
Joined: April 12th, 2014, 12:52 pm
Location: Slovakia

Re: LuaCalendar

Post by pds »

But I discovered another problem. I have an event and I want it to last two days, how should I do it?
I tried :

Code: Select all

<Event Year="2023" Month="3" Day="27" Repeat="custom" Multiplier="86400">Test</Event>
but that repeated the event for every day.
Snímka obrazovky 2023-03-21 112126.jpg
For example, I want the event to be only on March 27 and 28. What am I doing wrong, or is there another entry for this?
You do not have the required permissions to view the files attached to this post.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2388
Joined: March 23rd, 2015, 5:26 pm

Re: LuaCalendar

Post by SilverAzide »

pds wrote: March 21st, 2023, 10:23 am But I discovered another problem. I have an event and I want it to last two days, how should I do it?
I tried :

Code: Select all

<Event Year="2023" Month="3" Day="27" Repeat="custom" Multiplier="86400">Test</Event>
but that repeated the event for every day.

For example, I want the event to be only on March 27 and 28. What am I doing wrong, or is there another entry for this?
There's no "duration" setting for an event. If you want an event to last two days, then you simply create two events, one for each day.
Gadgets Wiki GitHub More Gadgets...
User avatar
pds
Posts: 69
Joined: April 12th, 2014, 12:52 pm
Location: Slovakia

Re: LuaCalendar

Post by pds »

SilverAzide wrote: March 21st, 2023, 11:52 am There's no "duration" setting for an event. If you want an event to last two days, then you simply create two events, one for each day.
Repeat*
When used, this option allows an event to repeat using a specified pattern as listed below.

Month: The event repeats on the same day each month. If a multiplier is used a full date must be specified, else only a day is necessary.
Year: The event repeats on a yearly basis. Month and day must be specified.
Week: The event repeats on a weekly basis. A full date must be specified.
Custom: The event will repeat based on the number of seconds specified in the Multiplier option. A number greater than 86400 must be used.

Note: A single day is represented as 86400.
and what is the purpose of "Repeat" ?
User avatar
SilverAzide
Rainmeter Sage
Posts: 2388
Joined: March 23rd, 2015, 5:26 pm

Re: LuaCalendar

Post by SilverAzide »

pds wrote: March 21st, 2023, 1:24 pm and what is the purpose of "Repeat" ?
It is for events that repeat at some specific interval, like yearly, monthly, weekly, etc. You could of course create an event that repeats daily, but then -- as you noticed -- you end up with an event happening every single day forever, which is not what you want.
Gadgets Wiki GitHub More Gadgets...
User avatar
pds
Posts: 69
Joined: April 12th, 2014, 12:52 pm
Location: Slovakia

Re: LuaCalendar

Post by pds »

SilverAzide wrote: March 21st, 2023, 5:24 pm It is for events that repeat at some specific interval, like yearly, monthly, weekly, etc. You could of course create an event that repeats daily, but then -- as you noticed -- you end up with an event happening every single day forever, which is not what you want.
So the "Repeat custom" function does not work as it should. So what's a shame.