Periods (dw::core::Periods)
This module contains functions for working with and creating Period values.
To use this module, you must import it to your DataWeave code,
for example, by adding the line import * from dw::core::Periods
to the header of your DataWeave script.
Functions
Name | Description |
---|---|
Returns a Period (P) value consisting of the number of years, months, and days between two Date values. |
|
Creates a Period value from the provided number of days. |
|
Creates a Period value that represents a number of days, hours, minutes, or seconds. |
|
Creates a Period value from the provided number of hours. |
|
Creates a Period value from the provided number of minutes. |
|
Creates a Period value from the provided number of months. |
|
Creates a Period value as a date-based number of years, months, and days in the ISO-8601 calendar system. |
|
Creates a Period value from the provided number of seconds. |
|
Creates a Period value from the provided number of years. |