Capoerista
Programmer
Hi All,
Is it possible to do date/time manipulation easily on DATETIME YEAR TO SECOND variables ? (4GL 7.20.UE1, SE 7.24.UC8). I tried the following
main
define
v_today DATETIME YEAR TO SECOND,
v_yest DATETIME YEAR TO SECOND,
v_diff float
LET v_today = today
LET v_today = "2004-01-22 23:45:00"
LET v_yest = "2004-01-16 10:30:00"
LET v_diff = v_today - v_yest
display v_diff
end main
which gives a cryptic result of 2.12e-314. Changing the variables/assignments to DATE type gives a result of 6 which is good. However I need to go down to hour/min/sec level.
Thanks in advance
Ade
Is it possible to do date/time manipulation easily on DATETIME YEAR TO SECOND variables ? (4GL 7.20.UE1, SE 7.24.UC8). I tried the following
main
define
v_today DATETIME YEAR TO SECOND,
v_yest DATETIME YEAR TO SECOND,
v_diff float
LET v_today = today
LET v_today = "2004-01-22 23:45:00"
LET v_yest = "2004-01-16 10:30:00"
LET v_diff = v_today - v_yest
display v_diff
end main
which gives a cryptic result of 2.12e-314. Changing the variables/assignments to DATE type gives a result of 6 which is good. However I need to go down to hour/min/sec level.
Thanks in advance
Ade