Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- JavaScript object: XMLDate
- JavaScript method: XMLDate.addDuration()
- JavaScript method: XMLDate.getDate()
- JavaScript method: XMLDate.getDatum()
- JavaScript method: XMLDate.getGMTSCDateTimeString()
- JavaScript method: XMLDate.getISODate()
- JavaScript method: XMLDate.getISODateTimeString()
- JavaScript method: XMLDate.getISODay()
- JavaScript method: XMLDate.getISOMonth()
- JavaScript method: XMLDate.getISOTime()
- JavaScript method: XMLDate.getISOYear()
- JavaScript method: XMLDate.getSCDateTimeString()
- JavaScript method: XMLDate.JSDate()
- JavaScript method: XMLDate.toSCDuration()
JavaScript method: XMLDate.addDuration()
This method returns an XMLDate object containing the new date/time after adding the duration from the duration argument.
Syntax
XMLDate.addDuration( duration );
Arguments
The following arguments are valid for this function:
Argument | Data type | Required | Description |
---|---|---|---|
duration | ISO 8601 duration string | Yes | This argument contains the ISO 8601 duration string or variable value you want the script to add to an XMLDate object. |
Return values
An XMLDate object or null
.
The method returns an XMLDate object or null
if conversion fails.
Example
This example does the following:
- Creates a new XMLDate object containing today's date
- Adds 1 year, 2 months, 3 days, and 4 hours to the XMLDate object then displays the result
print( "Creating XMLDate object..." ); var d = new XMLDate( new Date() ); print( "The value of the new XMLDate object is: " + d ); print( "Adding 1 year, 2 months, 3 days, and 4 hours to date..." ); var dur = d.addDuration( "P1Y2M3DT4H" ); print( "The value of the new XMLDate object is: " + dur );