Ad

Always forget how to exact determine programmer's day. Some code may help do it exactly and without heavy calculations.

# How to check that target date is Programmer's day?

def is_programmers_day(date):
    return date.timetuple().tm_yday == 256