| Attribute |
Description |
| ONE_DAY |
Interval value representing an interval of one day. |
Example:
interval as Interval
interval = '25d5h1m'
display "original interval: " + interval
interval = interval + Interval.ONE_DAY
display "after adding a day: " + interval
| Attribute |
Description |
| ONE_HOUR |
Interval value representing an interval of one hour. |
Example:
interval as Interval
interval = '25d5h1m'
display "original interval: " + interval
interval = interval + Interval.ONE_HOUR
display "after adding an hour: " + interval
| Attribute |
Description |
| ONE_MINUTE |
Interval value representing an interval of one minute. |
Example:
interval as Interval
interval = '25d5h1m'
display "original interval: " + interval
interval = interval + Interval.ONE_MINUTE
display "after adding a minute: " + interval
| Attribute |
Description |
| ONE_MONTH |
Interval value representing an interval of one month. |
Example:
interval as Interval
interval = '2M25d5h1m'
display "original interval: " + interval
interval = interval + Interval.ONE_MONTH
display "after adding a month: " + interval
| Attribute |
Description |
| ONE_SECOND |
Interval value representing an interval of one second. |
Example:
interval as Interval
interval = '25d5h1m7s'
display "original interval: " + interval
interval = interval + Interval.ONE_SECOND
display "after adding a second: " + interval
| Attribute |
Description |
| ZERO |
Interval representing the zero value. When added to another interval, the interval does not change its value. |
Example:
interval as Interval
interval = '1M20d3h40m5s'
display "original interval: " + interval
interval = interval + Interval.ZERO
display "after adding ZERO: " + interval
| Attribute |
Description |
| daysOnly |
Int value representing the days component of an interval. |
Example:
interval as Interval
interval = '1M20d10h'
display "days component of an interval: " +
interval.daysOnly
| Attribute |
Description |
| days |
Int value representing the days component of an interval. |
Example:
interval as Interval
interval = '1M20d10h'
display "days component of an interval: " +
interval.days
| Attribute |
Description |
| hoursOnly |
Int value representing the hours component of an interval. |
Example:
interval as Interval
interval = '1d20h30m'
display "hours component of an interval: " +
interval.hoursOnly
| Attribute |
Description |
| hours |
Int value representing the hours component of an interval. |
Example:
interval as Interval
interval = '1d20h30m'
display "hours component of an interval: " +
interval.hours
| Attribute |
Description |
| microSecondsOnly |
Int value representing the microseconds component of an interval. |
Example:
interval as Interval
interval = Interval("20.000003s")
display "microseconds component of an interval: "+
interval.microSecondsOnly
| Attribute |
Description |
| microSeconds |
Total number of microseconds contained in the interval. |
Example:
interval as Interval
interval = Interval("20.000003s")
display "total microseconds of an interval: " +
interval.microSeconds
| Attribute |
Description |
| milliSecondsOnly |
Int value representing the milliseconds component of an interval, without including microseconds. |
Example:
interval as Interval
interval = '20.250320s'
display "milliseconds component of an interval: " +
interval.milliSecondsOnly
| Attribute |
Description |
| milliSeconds |
Int value representing the milliseconds component of an interval plus the microseconds contained in it. |
Example:
interval = '20.250320s'
display "milliseconds component with microseconds: " +
interval.milliSeconds
| Attribute |
Description |
| minutesOnly |
Int value representing the minutes component of an interval. |
Examples:
interval as Interval
interval = '2h20m10s'
display "minutes component of an interval: " +
interval.minutesOnly
| Attribute |
Description |
| minutes |
Total number of minutes contained in the interval. |
Examples:
interval as Interval
interval = '2h20m10s'
display "total minutes of an interval: "+
interval.minutes
| Attribute |
Description |
| monthsOnly |
Int value representing the months component of an interval. |
Examples:
interval as Interval
interval = '1Y2M3d20h'
display "months component of an interval: " +
interval.monthsOnly
| Attribute |
Description |
| months |
Total number of months in an interval. |
Examples:
interval as Interval
interval = '1Y2M3d20h'
display "total months of an interval: " +
interval.months
| Attribute |
Description |
| secondsOnly |
Int value representing the seconds component of an interval. |
Examples:
interval as Interval
interval = '1h20m35s'
display "seconds component of an interval: " +
interval.secondsOnly
| Attribute |
Description |
| seconds |
Total number of seconds in an interval. |
Examples:
interval as Interval
interval = '1h1m5s'
display "total seconds of an interval " +
interval.seconds
| Attribute |
Description |
| totalMicroSeconds |
Int value representing the total number of microseconds contained in the interval. |
Examples:
interval as Interval
interval = '20.250320s'
display "total microseconds of an interval: " +
interval.totalMicroseconds
| Attribute |
Description |
| yearsOnly |
Int value representing the years component of an interval. |
Examples:
interval as Interval
interval = '2Y10M15d'
display "years component of an interval: " +
interval.yearsOnly
| Attribute |
Description |
| years |
Total number of years contained in the interval. |
Examples:
interval as Interval
interval = '25M15d'
display "total years of an interval: " +
interval.years