workbook.createDuration(options)
|
Method Description |
Creates an duration. |
|
Returns |
|
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
|
Governance |
None |
|
Module |
|
|
Sibling Module Members |
|
|
Since |
2021.2 |
Parameters
The options parameter is a JavaScript object.
|
Parameter |
Type |
Required / Optional |
Description |
|---|---|---|---|
|
|
string |
required |
Start date or date time. Use the workbook.TemporalUnit enum to set the value. |
|
|
string |
required |
End date or date time. Use the workbook.TemporalUnit enum to set the value. |
Errors
|
Error Code |
Thrown If |
|---|---|
|
INVALID_TEMPORAL_UNIT |
If |