The time.addHours() API adds the number of hours that are passed to the date or time.
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Examples
...
Code Block | ||
---|---|---|
| ||
pjs.define("time", { type: 'time', initValue: '12:00:00'});
time = time.addHours(1);
return time;
//13:00:00 |
The time.addHours() API adds the number of hours that are passed to the date or time.
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Code Block | ||
---|---|---|
| ||
pjs.define("time", { type: 'time', initValue: '12:00:00'});
time = time.addHours(1);
return time;
//13:00:00 |