Focal Point
[CLOSED] subtract 24 hours from Timestamp

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/85010112

February 25, 2009, 10:37 PM
Tomsweb
[CLOSED] subtract 24 hours from Timestamp
I have a timestamp field result_time
RESULT_TIME
2008/03/01 05:57:00

and I used HADD to add 24 hours to it.
COMPUTE RS24_TIME/HYYMDS = (RESULT_TIME,'MINUTE',1440,8,'HYYMDS');

RS24_TIME
2008/03/02 05:57:00

Can anyone help me calculate a new field that subtracts 24 hours from RS24_TIME?

BAS24_TIME
????/??/?? ??:??:??

Any ideas? Idea

Thanks!

This message has been edited. Last edited by: Kerry,


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
February 25, 2009, 10:58 PM
jimster06
Using -1440 comes to mind.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
February 26, 2009, 02:25 AM
Tony A
quote:
Using -1440 comes to mind.
ROFL

Sorry Tom, you must have been having one of those days! Mid week - not Monday and not Friday, just one of those inbetween days where nothing goes right. I've have them last from Tuesday to Thursday Frowner

T