Hello Folks, I'm using DateTime in my game and start the game in 1980. I have daily Tasks triggering at specific time of day, but I want to skip these tasks if the day in-game is a bank Holiday, like Christmas or Easter or New Years day. Of course I could check if DateTime.day == 1 && DateTime.month == 1 and so on but I thought of a List, array or something else going like if(DateTime != Holiday) I'm not aware of any function telling if a specific day is a holiday, so I'm open to any suggestion
Western Countries. The script can always be set to the wanted country or culture, so why does it matter in the end ?
Because holiday plans in some countries change more often than .net standard. (but civilizations rise and fall in time Unity's mono changes .Net version ) Just draw holiday dates from some external source.
There aren't that many "bank holidays" I would just hard code them if I were you. Well, Easter is fun -- you can look that one up lol * Did that for a game w/ my friend... For a holiday theme.
Well, something like this could probably help. But if I would be you, I would reconsider implementing such a feature, I think it isn't worth the effort.