How to get current session on any year?

Hello, I’m trying to make a game with session decoration like winter decoration or like summer decoration So I’m trying to make it auto that a script handles it, but I actually don’t know how to make one

So how can I make a script that checks the current session on ANY YEAR like 2050 or 2060 or any year?

You can use the date function to easily format to the month or day of any year. To do the math yourself from Unix time, you could use the remainder operator % to separate the integer of years from what is left over.