Represents temporal amount containing months, days, seconds and nanoseconds. A duration can hold a negative value.
public sealed class Duration : TemporalValue, IConvertible, IEquatable<Duration>, IComparable, IComparable<Duration>
Duration
Initializes a new instance of Duration in terms of Days, Seconds and Nanos
Initializes a new instance of Duration with all supported temporal fields
Default comparer for Duration values.
The number of days in this duration.
The number of months in this duration.
The number of nanoseconds in this duration.
The number of seconds in this duration.
Compares the value of this instance to a specified Duration value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
Compares the value of this instance to a specified object which is expected to be a Duration value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified Duration value.
Returns a value indicating whether the value of this instance is equal to the value of the specified Duration instance.
Returns a value indicating whether this instance is equal to a specified object.
Returns the hash code for this instance.
Converts the value of the current Duration object to its equivalent string representation.
Determines whether one specified Duration is more than another specified Duration.
Determines whether one specified Duration represents a duration that is the same as or less than the other specified Duration
Determines whether one specified Duration is less than another specified Duration.
Determines whether one specified Duration represents a duration that is the same as or more than the other specified Duration
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4