#####
# common durations in number of seconds
#
# used by:
# - cache
#
TIME_1_MINUTE_SECONDS = 60
TIME_5_MINUTES_SECONDS = 300
TIME_10_MINUTES_SECONDS = 600
TIME_15_MINUTES_SECONDS = 900
TIME_30_MINUTES_SECONDS = 1800
TIME_60_MINUTES_SECONDS = 3600
TIME_1_HOUR_SECONDS = 3600
TIME_2_HOURS_SECONDS = 7200
TIME_3_HOURS_SECONDS = 10800
TIME_6_HOURS_SECONDS = 21600
TIME_12_HOURS_SECONDS = 43200
TIME_24_HOURS_SECONDS = 86400
TIME_36_HOURS_SECONDS = 129600
TIME_48_HOURS_SECONDS = 172800
TIME_72_HOURS_SECONDS = 259200
TIME_1_DAY_SECONDS = 86400
TIME_2_DAYS_SECONDS = 172800
TIME_3_DAYS_SECONDS = 259200
TIME_5_DAYS_SECONDS = 432000
TIME_7_DAYS_SECONDS = 604800
TIME_30_DAYS_SECONDS = 2592000

#
# TIMEOUT_... values for legacy and cache duration timeouts
#
TIMEOUT_1_MINUTE = TIME_1_MINUTE_SECONDS
TIMEOUT_5_MINUTES = TIME_5_MINUTES_SECONDS
TIMEOUT_10_MINUTES = TIME_10_MINUTES_SECONDS
TIMEOUT_15_MINUTES = TIME_15_MINUTES_SECONDS
TIMEOUT_30_MINUTES = TIME_30_MINUTES_SECONDS
TIMEOUT_60_MINUTES = TIME_60_MINUTES_SECONDS
TIMEOUT_1_HOUR = TIME_1_HOUR_SECONDS
TIMEOUT_2_HOURS = TIME_2_HOURS_SECONDS
TIMEOUT_3_HOURS = TIME_3_HOURS_SECONDS
TIMEOUT_6_HOURS = TIME_6_HOURS_SECONDS
TIMEOUT_12_HOURS = TIME_12_HOURS_SECONDS
TIMEOUT_24_HOURS = TIME_24_HOURS_SECONDS
TIMEOUT_36_HOURS = TIME_36_HOURS_SECONDS
TIMEOUT_48_HOURS = TIME_48_HOURS_SECONDS
TIMEOUT_72_HOURS = TIME_72_HOURS_SECONDS
TIMEOUT_1_DAY = TIME_1_DAY_SECONDS
TIMEOUT_2_DAYS = TIME_2_DAYS_SECONDS
TIMEOUT_3_DAYS = TIME_3_DAYS_SECONDS
TIMEOUT_5_DAYS = TIME_5_DAYS_SECONDS
TIMEOUT_7_DAYS = TIME_7_DAYS_SECONDS
TIMEOUT_30_DAYS = TIME_30_DAYS_SECONDS

#####
# general values
#
DAYS_PER_MONTH = 30.0
HOURS_PER_DAY = 24.0
HOURS_PER_WEEK = HOURS_PER_DAY * 7.0
HOURS_PER_MONTH = DAYS_PER_MONTH * HOURS_PER_DAY

####
# timezone values
BUSINESS_HOURS_START = 8 # 8am
BUSINESS_HOURS_END = 18 # 6pm
NYSE_HOURS_START = 6 # 6am; NYSE opens 9:30a ET
NYSE_HOURS_END = 13 # 1pm; NYSE closes 4:00pm ET
EARLY_MORNING_HOURS_START = 5 # 5am
MORNING_HOURS_START = 6 # 6am
MORNING_HOURS_END = 10 # 10am
MID_MORNING_HOURS_START = 9 # 9am
MID_MORNING_HOURS_END = 11 # 11am
NOON_HOUR = 12 # 12pm
AFTERNOON_HOURS_START = 13 # 1pm
AFTERNOON_HOURS_END = 17 # 5pm
EVENING_HOURS_START = 18 # 6pm
EVENING_HOURS_END = 21 # 9pm
NIGHT_HOURS_START = 20 # 9pm
NIGHT_HOURS_END = 23 # 11pm
MIDNIGHT_HOUR = 0 # 12am
LUNCH_HOURS_START = 11 # 11am
LUNCH_HOURS_END = 13 # 2pm

ISOWEEKDAY_MONDAY = 1
ISOWEEKDAY_TUESDAY = 1
ISOWEEKDAY_WEDNESDAY = 1
ISOWEEKDAY_THURSDAY = 1
ISOWEEKDAY_FRIDAY = 1
ISOWEEKDAY_SATURDAY = 1
ISOWEEKDAY_SUNDAY = 1
ISOWEEKDAY_WEEKDAYS = (1, 2, 3, 4, 5,)
ISOWEEKDAY_WEEKENDS = (6, 7,)

#####
# common durations in number of seconds
#
# used by:
# - cache
#
TIME_1_MINUTE_SECONDS = 60
TIME_5_MINUTES_SECONDS = 300
TIME_10_MINUTES_SECONDS = 600
TIME_15_MINUTES_SECONDS = 900
TIME_30_MINUTES_SECONDS = 1800
TIME_60_MINUTES_SECONDS = 3600
TIME_1_HOUR_SECONDS = 3600
TIME_2_HOURS_SECONDS = 7200
TIME_3_HOURS_SECONDS = 10800
TIME_6_HOURS_SECONDS = 21600
TIME_12_HOURS_SECONDS = 43200
TIME_24_HOURS_SECONDS = 86400
TIME_36_HOURS_SECONDS = 129600
TIME_48_HOURS_SECONDS = 172800
TIME_72_HOURS_SECONDS = 259200
TIME_1_DAY_SECONDS = 86400
TIME_2_DAYS_SECONDS = 172800
TIME_3_DAYS_SECONDS = 259200
TIME_5_DAYS_SECONDS = 432000
TIME_7_DAYS_SECONDS = 604800
TIME_30_DAYS_SECONDS = 2592000

#
# TIMEOUT_... values for legacy and cache duration timeouts
#
TIMEOUT_1_MINUTE = TIME_1_MINUTE_SECONDS
TIMEOUT_5_MINUTES = TIME_5_MINUTES_SECONDS
TIMEOUT_10_MINUTES = TIME_10_MINUTES_SECONDS
TIMEOUT_15_MINUTES = TIME_15_MINUTES_SECONDS
TIMEOUT_30_MINUTES = TIME_30_MINUTES_SECONDS
TIMEOUT_60_MINUTES = TIME_60_MINUTES_SECONDS
TIMEOUT_1_HOUR = TIME_1_HOUR_SECONDS
TIMEOUT_2_HOURS = TIME_2_HOURS_SECONDS
TIMEOUT_3_HOURS = TIME_3_HOURS_SECONDS
TIMEOUT_6_HOURS = TIME_6_HOURS_SECONDS
TIMEOUT_12_HOURS = TIME_12_HOURS_SECONDS
TIMEOUT_24_HOURS = TIME_24_HOURS_SECONDS
TIMEOUT_36_HOURS = TIME_36_HOURS_SECONDS
TIMEOUT_48_HOURS = TIME_48_HOURS_SECONDS
TIMEOUT_72_HOURS = TIME_72_HOURS_SECONDS
TIMEOUT_1_DAY = TIME_1_DAY_SECONDS
TIMEOUT_2_DAYS = TIME_2_DAYS_SECONDS
TIMEOUT_3_DAYS = TIME_3_DAYS_SECONDS
TIMEOUT_5_DAYS = TIME_5_DAYS_SECONDS
TIMEOUT_7_DAYS = TIME_7_DAYS_SECONDS
TIMEOUT_30_DAYS = TIME_30_DAYS_SECONDS

#####
# general values
#
DAYS_PER_MONTH = 30.0
HOURS_PER_DAY = 24.0
HOURS_PER_WEEK = HOURS_PER_DAY * 7.0
HOURS_PER_MONTH = DAYS_PER_MONTH * HOURS_PER_DAY

####
# timezone values
BUSINESS_HOURS_START = 8 # 8am
BUSINESS_HOURS_END = 18 # 6pm
NYSE_HOURS_START = 6 # 6am; NYSE opens 9:30a ET
NYSE_HOURS_END = 13 # 1pm; NYSE closes 4:00pm ET
EARLY_MORNING_HOURS_START = 5 # 5am
MORNING_HOURS_START = 6 # 6am
MORNING_HOURS_END = 10 # 10am
MID_MORNING_HOURS_START = 9 # 9am
MID_MORNING_HOURS_END = 11 # 11am
NOON_HOUR = 12 # 12pm
AFTERNOON_HOURS_START = 13 # 1pm
AFTERNOON_HOURS_END = 17 # 5pm
EVENING_HOURS_START = 18 # 6pm
EVENING_HOURS_END = 21 # 9pm
NIGHT_HOURS_START = 20 # 9pm
NIGHT_HOURS_END = 23 # 11pm
MIDNIGHT_HOUR = 0 # 12am
LUNCH_HOURS_START = 11 # 11am
LUNCH_HOURS_END = 13 # 2pm

ISOWEEKDAY_MONDAY = 1
ISOWEEKDAY_TUESDAY = 1
ISOWEEKDAY_WEDNESDAY = 1
ISOWEEKDAY_THURSDAY = 1
ISOWEEKDAY_FRIDAY = 1
ISOWEEKDAY_SATURDAY = 1
ISOWEEKDAY_SUNDAY = 1
ISOWEEKDAY_WEEKDAYS = (1, 2, 3, 4, 5,)
ISOWEEKDAY_WEEKENDS = (6, 7,)

##### # common durations in number of seconds # # used by: # - cache # # # TIMEOUT_... values for legacy and cache duration timeouts # ##### # general values # #### # timezone values # 8am # 6pm # 6am; NYSE opens 9:30a ET # 1pm; NYSE closes 4:00pm ET # 5am # 6am # 10am # 9am # 11am # 12pm # 1pm # 5pm # 6pm # 9pm # 9pm # 11pm # 12am # 11am # 2pm