English
Duration
About 181 wordsLess than 1 minute
2026-01-09
Duration
Duration - No creation interface exists. This type is returned when Integer data interacts with date/time type data.
Summary
Defining Duration:
<Integer>.years;
<Integer>.months;
<Integer>.days;
<Integer>.hours;
<Integer>.minutes;
```text
Example:
```text
Date date = "2019-01-01"
date = date + 1.months //Returns: 2019-02-01
```text
## Changelog
| Version | Date | Changes | Author |
| --- | --- | --- | --- |
| v1.0 | 2026-05-20 | Initial version | |
## Background
This document provides detailed information about the Duration API functionality and usage, helping developers integrate relevant capabilities.
## Applicable Scenarios
Specific applicable scenarios are determined by actual business needs. Developers can select the appropriate API for integration as required.
## Prerequisites
- Access to Fxiaoke Open Platform
- Application authorization and configuration completed
- Basic knowledge of relevant business domain
## Steps
Please refer to the detailed instructions for each API.
## Notes
- Ensure prerequisites are met before calling APIs
- Pay attention to API call frequency limits
- Refer to error code documentation for exception handling
## Code Examples
```groovy
// Please refer to specific API documentation for implementation codeCompatibility: This version currently has no deprecated or compatibility notes.
