You can use the AddToTime function to add hours, minutes, and/or
seconds to time. This function returns the result as a Time value. To
subtract from time, you can simply use negative numbers. The resulting
value
is always adjusted such that it represents an hour less than 24 (example: 18:45)
Syntax
AddToTime(time, hours, minutes, seconds)
So, how does it look like using an example?
¤t_time = 19:20:05. The below code will move the time ahead 1 hr, 5 minutes and 10 sec resulting in 20:25:15
&future_time = AddToTime(¤t_time, 1, 5, 10);
&future_time = AddToTime(¤t_time, 1, 0,0); (only one hr ahead 20:20:05)
&future_time = AddToTime(¤t_time, 1, -5,0); (only one hr ahead and 5 minutes back 20:15:05)
| Title | Under | Posted on |
|---|---|---|
| Inserting records | PeopleSoft Technical | 07/28/2010 - 11:03am |
| WEBLIB_PT_NAV.ISCRIPT1.FieldFormula.IScript_PT_NAV_PAGELET error... | PeopleSoft Technical | 07/27/2010 - 2:02pm |
| Basic language | PeopleSoft Technical | 07/27/2010 - 7:12am |
| Rowlevel security from app designer | PeopleSoft Technical | 07/27/2010 - 5:15am |
Comments
Post new comment