Relative TimeSpan |
Relative TimeSpans are formed using a set of rules that allow the TimeSpan to change when crossing daylight savings or when the days of the month are different.
A relative timespan is an expression that becomes dynamic when it is evaluated as 2 or more hours to account for daylight savings.
Example: The term "8 Hours" will actually account for 7 or 9 hours when daylight savings is crossed.
Example: The term "1 Day" will actually account for 23 or 25 hours when daylight savings is crossed.
Example: The term "1 Month" will actually account for 28-31 days depending on the number of days in a month.
Relative Duration Term | Description |
---|---|
# Milliseconds | Number of milliseconds to add or subtract. |
# Seconds | Number of seconds to add or subtract. |
# Minutes | Number of minutes to add or subtract. |
# Hours | Number of hours to add or subtract. |
# Days | Number of days to add or subtract. |
# Weeks | Number of weeks to add or subtract. |
# Months | Number of months to add or subtract. |
# Years | Number of years to add or subtract. |