Good afternoon,
I have a program that users scan a worker that is working through his lunch. My program takes the start time and adds 4 hours to a field, then adds 6 hours to a field. When the start time of a person is 18:00:00, the first part of the works, giving a time of 22:00:00. But when I try to take their start time and add 6 hours to it: 18:00:00 + 6 hours, the result is zero. TSTART is 1800.
Any idea why this is not working?
eval Fullstart = %DEC((%char(Tstart) + '00'):6:0)
eval Fstarttime= %char(%time(Fullstart):*HMS)
eval strwindow =%Dec((%time(Fstarttime:*HMS) +
%hours(4)):*HMS)
eval endwindow =%Dec((%time(Fstarttime:*HMS) +
%hours(6)):*HMS)
Thanks in advance.
I have a program that users scan a worker that is working through his lunch. My program takes the start time and adds 4 hours to a field, then adds 6 hours to a field. When the start time of a person is 18:00:00, the first part of the works, giving a time of 22:00:00. But when I try to take their start time and add 6 hours to it: 18:00:00 + 6 hours, the result is zero. TSTART is 1800.
Any idea why this is not working?
eval Fullstart = %DEC((%char(Tstart) + '00'):6:0)
eval Fstarttime= %char(%time(Fullstart):*HMS)
eval strwindow =%Dec((%time(Fstarttime:*HMS) +
%hours(4)):*HMS)
eval endwindow =%Dec((%time(Fstarttime:*HMS) +
%hours(6)):*HMS)
Thanks in advance.
Comment