1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

ensure period is always uppercase in dict value. update period documentation

This commit is contained in:
Kelly Brazil
2021-03-23 14:04:36 -07:00
parent 7cb8577b96
commit 6802884540
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ Returns:
"hour": integer,
"minute": integer,
"second": integer,
"period": string,
"period": string, # 'AM' or 'PM'. null if 24-hour output
"month": string,
"weekday": string,
"weekday_num": integer,

View File

@ -88,7 +88,7 @@ def process(proc_data):
"hour": integer,
"minute": integer,
"second": integer,
"period": string,
"period": string, # 'AM' or 'PM'. null if 24-hour output
"month": string,
"weekday": string,
"weekday_num": integer,
@ -148,7 +148,7 @@ def process(proc_data):
'hour': dt_hour,
'minute': dt_minute,
'second': dt_second,
'period': proc_data['period'] if 'period' in proc_data else None,
'period': proc_data['period'].upper() if 'period' in proc_data else None,
'month': proc_data['month'],
'weekday': proc_data['weekday'],
'weekday_num': weekday_map[proc_data['weekday']],