2006 Sep 06 11:09 AM
Hello.
How can i subtract time from any given date/time?
Thank you.
2006 Sep 06 11:18 AM
Hi
You can use FM <b>C14Z_CALC_DATE_TIME</b>
Inputs
<b>Seconds</b> (In your case -ve, as you want to substract time)
<b>Time</b>
<b>Date</b>
Regards,
Raj
Hi
You can use FM <b>C14Z_CALC_DATE_TIME</b>
Inputs
<b>Seconds</b> (In your case -ve, as you want to substract time)
<b>Time</b>
<b>Date</b>
Regards,
Raj
2006 Sep 06 11:18 AM
2006 Sep 06 11:18 AM
Hi
You can use FM <b>C14Z_CALC_DATE_TIME</b>
Inputs
<b>Seconds</b> (In your case -ve, as you want to substract time)
<b>Time</b>
<b>Date</b>
Regards,
Raj
2006 Sep 06 11:30 AM
Hello,
What i need is not the difference bettwen 2 date/time. I need to subtract for example an hour from a date/time and get the result.
C14Z_CALC_DATE_TIME adds seconds without a problem but it work with negative seconds.
Thank you
Nuno Silva
2006 Sep 06 11:35 AM
2006 Sep 06 11:38 AM
hi,
You can subtract time directly, there is no need of FM.
data: v_time type t value '201010'.
v_time = v_time - 600. "10min (10*60 = 600 seconds)
write :/ v_time.Regards,
Sailaja.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |