Syntax for If todays date = x then

I’m new pretty new to programming and have not been having any luck with how to write this simple bit of code. I’ve tried working off of other .star examples on github but not finding what I need.

Basically I just want an image to show depending on the date, so if it is my birthday I want to show a cake image etc.

I have this so far which doesn’t give any errors but does nothing

if time.now() == time.now(month = 12, day=25):

Try this syntax

currentDay = time.now().day
currentMonth = time.now().month

then you can test for currentDay == 25 and currentMonth == 12

time.parse_time might also be an option.

Thank you for this, currentDay etc is working and does what I need.