It is independent of any calendar and concepts like "day" or "month". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.
Example 1: Compute Duration from two Timestamps in pseudo code.
Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
Example 3: Compute Duration from datetime.timedelta in Python.
Signed fractions of a second at nanosecond resolution of the span of time.
Signed seconds of the span of time.
The maximum permitted number of seconds.
The minimum permitted number of seconds.
The number of nanoseconds in a second.
The number of nanoseconds in a BCL tick (as used by TimeSpan and DateTime).
Returns a string representation of this Duration for diagnostic purposes.
Converts this Duration to a TimeSpan.
Adds the two specified Duration values together.
Returns the result of negating the duration.
Subtracts one Duration from another.
Durations less than one second are represented with a 0 seconds field and a positive or negative nanos field. For durations of one second or more, a non-zero value for the nanos field must be of the same sign as the seconds field. Must be from -999,999,999 to +999,999,999 inclusive.
Must be from -315,576,000,000 to +315,576,000,000 inclusive.
If the duration is not a precise number of ticks, it is truncated towards 0.
This value isn't a valid normalized duration, as described in the documentation.
The value of this duration, as a TimeSpan.
The value of the given TimeSpan, as a Duration.
The first value to add. Must not be null.
The second value to add. Must not be null.
For example, the negation of 5 minutes is -5 minutes.
The duration to negate. Must not be null.
The negated value of this duration.
The duration to subtract from. Must not be null.
The duration to subtract. Must not be null.
The difference between the two specified durations.