mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
ensure period is always uppercase in dict value. update period documentation
This commit is contained in:
@ -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,
|
||||
|
@ -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']],
|
||||
|
Reference in New Issue
Block a user