@@ -37,7 +37,7 @@ def _get_nto(has_activity, has_tags, pnum):
3737
3838def get_fstr (has_activity , has_tags , pnum ):
3939 """Get formatting for printing to stdout"""
40- lst = ['{Day:3}' , '{Date:10}' , '{Span:>5}' , '{Total:5}' ]
40+ lst = ['{Day:3}' , '{Date:10}' , '{Start:8}' , '{ Span:>5}' , '{Total:5}' ]
4141 if pnum :
4242 lst .append ('{Sum:5}' )
4343 if has_activity :
@@ -48,7 +48,7 @@ def get_fstr(has_activity, has_tags, pnum):
4848 return ' ' .join (lst )
4949
5050def _get_nto_fieldnames (has_activity , has_tags , pnum ):
51- lst = ['Day' , 'Date' , 'Span' , 'Total' ]
51+ lst = ['Day' , 'Date' , 'Start' , ' Span' , 'Total' ]
5252 if pnum :
5353 lst .append ('Sum' )
5454 if has_activity :
@@ -80,7 +80,8 @@ def _get_dfmttd_at010(nto, nts):
8080 debug (white ('timetext: _get_dfmttd_at010' ))
8181 tot = timedelta ()
8282 return [nto ._make (_nttxt (ntd ) +
83- (str_td (tot := tot + ntd .duration ), ntd .activity , ntd .message ))
83+ (str_td (tot := tot + ntd .duration ),
84+ ntd .activity , ntd .message ))
8485 for ntd in nts ]
8586
8687def _get_dfmttd_at001 (nto , nts ):
@@ -100,10 +101,10 @@ def _get_dfmttd_at011(nto, nts):
100101 for ntd in nts ]
101102
102103def _nttxt (ntd ):
103- weekday = ntd .start_datetime .strftime ('%a' )
104- startdt = ntd .start_datetime .strftime ('%Y-%m-%d' ) ### FMTDT12HM)
105- span = str_td ( ntd .duration )
106- return ( weekday , startdt , f'{ span } ' )
104+ return ( ntd .start_datetime .strftime ('%a' ), # weekday
105+ ntd .start_datetime .strftime ('%Y-%m-%d' ), # FMTDT12HM
106+ ntd .start_datetime . strftime ( '%I:%M %p' ),
107+ f'{ str_td ( ntd . duration ) } ' ) # span (HH:MM )
107108
108109FUNCS = {
109110 ( True , False , False ): _get_dfmttd_at100 ,
0 commit comments