Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1672

Help: Rainmeter Skins • Re: LEXIS Calendar recoded

$
0
0
My earlier question was sort of related to that. A minute is always the same. An hour is always the same. They number 60 in total. Whereas every month is different: 31, 28, 31, 30, etc. When your skin gets to 31st, how does it know that the next date is 1st and not 32nd? If you are essentially adding a number onto a previous measure, how do you get it to reset? Is that automatically worked out by Rainmeter itself? ie, it knows how the calendar months work and if it knows it's March 31st, the next date will be June 1st. In other words, it's not something you have to code for. Although you'd still have to code the meters obviously, but the actual dates are worked out for you?
It is the Time measure that just does such things. The Time measure knows a calendar. It knows what date/time it is now. It knows what day of the week April 15 is. It knows how many days there are in April. If I throw <the timestamp value of April 30> + 86400 to the Time measure, it returns 1 as a day number. That is, the Time measure automatically resets the date to 1.

Statistics: Posted by PineYellow — Today, 9:45 am



Viewing all articles
Browse latest Browse all 1672

Trending Articles