Time
AOC_TIMEZONE_NAME = 'EST'
module-attribute
The Advent of Code timezone name.
AOC_TIMEZONE = timezone(AOC_TIMEZONE_NAME)
module-attribute
The Advent of Code timezone.
aoc_today() -> Date
Returns the current date in the AOC_TIMEZONE
.
Source code in aoc/time.py
14 15 16 |
|
get_key_for_date(date: Date) -> Key
Returns the key for the given date
.
Raises:
Type | Description |
---|---|
ValueError
|
The |
Source code in aoc/time.py
19 20 21 22 23 24 25 |
|