computer doesn' waste cpu processing cycles simply checking the time over and over ratherthe while loop will just check the condition once per second and continue with the rest of the program after halloween (or whenever you program it to stopconverting datetime objects into strings epoch timestamps and datetime objects aren' very friendly to the human eye use the strftime(method to display datetime object as string (the in the name of the strftime(function stands for format the strftime(method uses directives similar to python' string formatting table - has full list of strftime(directives table - strftime(directives strftime(directive meaning % year with centuryas in ' % year without century' to ' ( to % month as decimal number' to ' % full month nameas in 'november% abbreviated month nameas in 'nov% day of the month' to ' % day of the year' to ' % day of the week' (sundayto ' (saturday% full weekday nameas in 'monday% abbreviated weekday nameas in 'mon% hour ( -hour clock)' to ' % hour ( -hour clock)' to ' % minute' to ' % second' to ' % 'amor 'pm%literal '%character pass strftime( custom format string containing formatting directives (along with any desired slashescolonsand so on)and strftime(will return the datetime object' information as formatted string enter the following into the interactive shelloct st datetime datetime( oct st strftime('% /% /% % :% :% ' : : oct st strftime('% :% % '' : pmoct st strftime("% of '% ""october of '