Handling of weeks and dates in general

BuddyHoli

Member
I am not sure how MacroDroid handles this:



In Europe and many other countries, there is a max. of 53 weeks a year (because week starts on Monday), there can be 54 weeks a year in the US.

If MacroDroid does not use the language to handle this, I would like to know what system is used.

Additional, if only one system is used, I would suggest to add a setting or automatically inherit the week system from language or country selection.

I would also suggest a magic variable or function that can convert a given date to year/month/week/day to extract those easier from a given date. Additionally, the possibility to calculate with dates would help a lot. Actually it is pretty hard to do something like 01/01/2023 [MM/DD/YYYY] - 1 so result is 12/31/2022

As an example, if today is 01/01/2023
{today-3, day} will output 29, {today-1, month} will output 12, {today-1, week} will output 53.

Thank you :)

Buddy
 

Endercraft

Moderator (& bug finder :D)
I think only @MacroDroidDev truly knows how it works.

 
Top