Represents a time interval.
Public Fields | |
| static const time_span | max_value | 
| Represents the maximum xtd::time_span value. This field is read-only.   | |
| static const time_span | min_value | 
| Represents the minimum xtd::time_span value. This field is read-only.   | |
| static constexpr int64 | nanoseconds_per_tick | 
| Represents the number of nanoseconds per tick. This field is constant.   | |
| static constexpr int64 | ticks_per_microsecond | 
| Represents the number of ticks in 1 microsecond. This field is constant.   | |
| static constexpr int64 | ticks_per_millisecond | 
| Represents the number of ticks in 1 millisecond. This field is constant.   | |
| static constexpr int64 | ticks_per_second | 
| Represents the number of ticks in 1 second.   | |
| static constexpr int64 | ticks_per_minute | 
| Represents the number of ticks in 1 minute. This field is constant.   | |
| static constexpr int64 | ticks_per_hour | 
| Represents the number of ticks in 1 hour. This field is constant.   | |
| static constexpr int64 | ticks_per_day | 
| Represents the number of ticks in 1 day. This field is constant.   | |
| static const time_span | zero | 
| Represents the zero xtd::time_span value. This field is read-only.   | |
Public Constructors | |
| time_span (int64 ticks) | |
| Initializes a new instance of the xtd::time_span structure to the specified number of ticks.   | |
| time_span (xtd::ticks ticks) | |
| Initializes a new instance of the xtd::time_span structure to the specified number of ticks.   | |
| template<typename duration_t , typename period_t = std::ratio<1>> | |
| time_span (const std::chrono::duration< duration_t, period_t > &value) | |
| Initializes a new instance of the xtd::time_span structure to the specified number of ticks.   | |
| time_span (int32 hours, int32 minutes, int32 seconds) | |
| Initializes a new instance of the xtd::time_span structure to a specified number of hours, minutes, and seconds.   | |
| time_span (int32 days, int32 hours, int32 minutes, int32 seconds) | |
| Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, and seconds.   | |
| time_span (int32 days, int32 hours, int32 minutes, int32 seconds, int32 milliseconds) | |
| Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, and millisonds.   | |
| time_span (int32 days, int32 hours, int32 minutes, int32 seconds, int32 milliseconds, int32 microseconds) | |
| Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, millisonds, and microseconds.   | |
| time_span (int32 days, int32 hours, int32 minutes, int32 seconds, int32 milliseconds, int32 microseconds, int32 nanoseconds) | |
| Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, millisonds, and microseconds.   | |
Public Properties | |
| int32 | days () const noexcept | 
| Gets the days component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | hours () const noexcept | 
| Gets the hours component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | microseconds () const noexcept | 
| Gets the microseconds component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | milliseconds () const noexcept | 
| Gets the milliseconds component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | minutes () const noexcept | 
| Gets the minutes component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | nanoseconds () const noexcept | 
| Gets the nanoseconds component of the time interval represented by the current xtd::time_span structure.   | |
| int32 | seconds () const noexcept | 
| Gets the seconds component of the time interval represented by the current xtd::time_span structure.   | |
| int64 | ticks () const noexcept | 
| Gets the number of ticks that represent the value of the current xtd::time_span structure.   | |
| xtd::ticks | ticks_duration () const noexcept | 
| Gets the number of ticks that represent the value of the current xtd::time_span structure.   | |
| double | total_days () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional days.   | |
| std::chrono::days | total_days_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional days.   | |
| double | total_hours () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional hours.   | |
| std::chrono::hours | total_hours_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional hours.   | |
| double | total_microseconds () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional microseconds.   | |
| std::chrono::microseconds | total_microseconds_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional microseconds.   | |
| double | total_milliseconds () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional milliseconds.   | |
| std::chrono::milliseconds | total_milliseconds_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional milliseconds.   | |
| double | total_minutes () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional minutes.   | |
| std::chrono::minutes | total_minutes_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional minutes.   | |
| double | total_nanoseconds () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional nanoseconds.   | |
| std::chrono::nanoseconds | total_nanoseconds_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional nanoseconds.   | |
| double | total_seconds () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional seconds.   | |
| std::chrono::seconds | total_seconds_duration () const noexcept | 
| Gets the value of the current xtd::time_span structure expressed in whole and fractional seconds.   | |
Public Methods | |
| time_span | add (const time_span &ts) const noexcept | 
| Returns a new xtd::time_span object whose value is the sum of the specified xtd::time_span object and this instance.   | |
| int32 | compare_to (const time_span &value) const noexcept override | 
| Compares the current instance with another object of the same type.   | |
| double | divide (const time_span &ts) const | 
| Returns a double value that's the result of dividing this instance by ts.   | |
| time_span | divide (double divisor) const | 
| Returns a new xtd::time_span object whose value is the result of dividing this instance by the specified divisor.   | |
| time_span | duration () const noexcept | 
| Returns a new xtd::time_span object whose value is the absolute value of the current xtd::time_span object.   | |
| bool | equals (const time_span &value) const noexcept override | 
| Indicates whether the current object is equal to another object of the same type.   | |
| double | multiply (const time_span &ts) const noexcept | 
| Returns a new xtd::time_spam object which value is the result of multiplication of this instance and the specified factor.   | |
| time_span | multiply (double factor) const noexcept | 
| Returns a new xtd::time_spam object which value is the result of multiplication of this instance and the specified factor.   | |
| time_span | negate () const | 
| Returns a new xtd::time_spam object whose value is the negated value of this instance.   | |
| time_span | subtract (const time_span &ts) const noexcept | 
| Returns a new xtd::time_span object whose value is the difference between the specified xtd::time_span object and this instance.   | |
| xtd::string | to_string () const noexcept override | 
| Returns a xtd::string that represents the current object.   | |
| string | to_string (const string &format) const | 
| Converts the value of the current xtd::time_span object to its equivalent string representation by using the specified format.   | |
| string | to_string (const string &format, const std::locale &loc) const override | 
| Converts the value of the current xtd::time_span object to its equivalent string representation by using the specified format, and locale.   | |
| virtual bool | equals (const object &obj) const noexcept | 
| Determines whether the specified object is equal to the current object.   | |
| static time_span | parse (const string &value) | 
| Converts the string representation of a time interval to its xtd::time_span equivalent.   | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are considered equal.   | |
Public Static Methods | |
| static bool | equals (time_span t1, time_span t2) | 
| Returns a value that indicates whether two specified instances of xtd::time_span are equal.   | |
| static time_span | from_days (double value) | 
| Returns a xtd::time_span that represents a specified number of days, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_days (std::chrono::days value) | 
| Returns a xtd::time_span that represents a specified number of days, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_hours (double value) | 
| Returns a xtd::time_span that represents a specified number of hours, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_hours (std::chrono::hours value) | 
| Returns a xtd::time_span that represents a specified number of hours, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_microseconds (double value) | 
| Returns a xtd::time_span that represents a specified number of microseconds.   | |
| static time_span | from_microseconds (std::chrono::microseconds value) | 
| Returns a xtd::time_span that represents a specified number of microseconds.   | |
| static time_span | from_milliseconds (double value) | 
| Returns a xtd::time_span that represents a specified number of milliseconds.   | |
| static time_span | from_milliseconds (std::chrono::milliseconds value) | 
| Returns a xtd::time_span that represents a specified number of milliseconds.   | |
| static time_span | from_minutes (double value) | 
| Returns a xtd::time_span that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_minutes (std::chrono::minutes value) | 
| Returns a xtd::time_span that represents a specified number of minutes.   | |
| static time_span | from_nanoseconds (double value) | 
| Returns a xtd::time_span that represents a specified number of nanoseconds.   | |
| static time_span | from_nanoseconds (std::chrono::nanoseconds value) | 
| Returns a xtd::time_span that represents a specified number of nanoseconds.   | |
| static time_span | from_seconds (double value) | 
| Returns a xtd::time_spam that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.   | |
| static time_span | from_seconds (std::chrono::seconds value) | 
| Returns a xtd::time_span that represents a specified number of seconds.   | |
| static time_span | from_ticks (int64 value) | 
| Returns a xtd::time_spam that represents a specified time, where the specification is in units of ticks.   | |
| static time_span | from_ticks (xtd::ticks value) | 
| Returns a xtd::time_span that represents a specified number of ticks.   | |
| static bool | try_parse (const string &value, time_span &result) | 
| Converts the string representation of a time interval to its xtd::time_span equivalent and returns a value that indicates whether the conversion succeeded.   | |
Additional Inherited Members | |
  Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object.   | |
| virtual size_t | get_hash_code () const noexcept | 
| Serves as a hash function for a particular type.   | |
| virtual type_object | get_type () const noexcept | 
| Gets the type of the current instance.   | |
| template<typename object_t > | |
| xtd::uptr< object_t > | memberwise_clone () const | 
| Creates a shallow copy of the current object.   | |
  Public Member Functions inherited from xtd::iequatable< time_span > | |
  Public Member Functions inherited from xtd::icomparable< time_span > | |
  Public Member Functions inherited from xtd::iformatable | |
  Static Public Member Functions inherited from xtd::object | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are considered equal.   | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are the same instance.   | |
      
  | 
  explicit | 
Initializes a new instance of the xtd::time_span structure to the specified number of ticks.
| tiks | A time period expressed in 100-nanosecond units. | 
      
  | 
  explicit | 
Initializes a new instance of the xtd::time_span structure to the specified number of ticks.
| tiks | A time period expressed in 100-nanosecond units. | 
      
  | 
  inline | 
Initializes a new instance of the xtd::time_span structure to the specified number of ticks.
| tiks | A time period expressed in 100-nanosecond units. | 
Initializes a new instance of the xtd::time_span structure to a specified number of hours, minutes, and seconds.
| hours | Number of hours. | 
| minutes | Number of minutes. | 
| seconds | Number of seconds. | 
| xtd::argument_out_of_range_exception | The parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value. | 
Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, and seconds.
| days | Number of days. | 
| hours | Number of hours. | 
| minutes | Number of minutes. | 
| seconds | Number of seconds. | 
| xtd::argument_out_of_range_exception | The parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value. | 
| xtd::time_span::time_span | ( | int32 | days, | 
| int32 | hours, | ||
| int32 | minutes, | ||
| int32 | seconds, | ||
| int32 | milliseconds | ||
| ) | 
Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, and millisonds.
| days | Number of days. | 
| hours | Number of hours. | 
| minutes | Number of minutes. | 
| seconds | Number of seconds. | 
| milliseconds | Number of milliseconds. | 
| xtd::argument_out_of_range_exception | The parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value. | 
| xtd::time_span::time_span | ( | int32 | days, | 
| int32 | hours, | ||
| int32 | minutes, | ||
| int32 | seconds, | ||
| int32 | milliseconds, | ||
| int32 | microseconds | ||
| ) | 
Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, millisonds, and microseconds.
| days | Number of days. | 
| hours | Number of hours. | 
| minutes | Number of minutes. | 
| seconds | Number of seconds. | 
| milliseconds | Number of milliseconds. | 
| microseconds | Number of microseconds. | 
| xtd::argument_out_of_range_exception | The parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value. | 
| xtd::time_span::time_span | ( | int32 | days, | 
| int32 | hours, | ||
| int32 | minutes, | ||
| int32 | seconds, | ||
| int32 | milliseconds, | ||
| int32 | microseconds, | ||
| int32 | nanoseconds | ||
| ) | 
Initializes a new instance of the xtd::time_span structure to a specified number of days, hours, minutes, seconds, millisonds, and microseconds.
| days | Number of days. | 
| hours | Number of hours. | 
| minutes | Number of minutes. | 
| seconds | Number of seconds. | 
| milliseconds | Number of milliseconds. | 
| microseconds | Number of microseconds. | 
| nanoseconds | Number of nanoseconds. | 
| xtd::argument_out_of_range_exception | The parameters specify a xtd::time_span value less than xtd::time_span::min_value or greater than xtd::time_span::max_value. | 
      
  | 
  noexcept | 
Gets the days component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the hours component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the microseconds component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the milliseconds component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the minutes component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the nanoseconds component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the seconds component of the time interval represented by the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the number of ticks that represent the value of the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the number of ticks that represent the value of the current xtd::time_span structure.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional days.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional days.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional hours.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional hours.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional microseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional microseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional milliseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional milliseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional minutes.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional minutes.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional nanoseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional nanoseconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional seconds.
      
  | 
  noexcept | 
Gets the value of the current xtd::time_span structure expressed in whole and fractional seconds.
Returns a new xtd::time_span object whose value is the sum of the specified xtd::time_span object and this instance.
| ts | The time interval to add. | 
Compares the current instance with another object of the same type.
| obj | An object to compare with this instance. | 
| Value | Condition | 
|---|---|
| Less than zero | This instance is less than obj. | 
| Zero | This instance is equal to obj. | 
| Greater than zero | This instance is greater than obj. | 
Implements xtd::icomparable< time_span >.
| double xtd::time_span::divide | ( | const time_span & | ts | ) | const | 
Returns a double value that's the result of dividing this instance by ts.
| ts | The value to be divided by. | 
| time_span xtd::time_span::divide | ( | double | divisor | ) | const | 
Returns a new xtd::time_span object whose value is the result of dividing this instance by the specified divisor.
| divisor | The value to be divided by. | 
      
  | 
  noexcept | 
Returns a new xtd::time_span object whose value is the absolute value of the current xtd::time_span object.
      
  | 
  overridevirtualnoexcept | 
Indicates whether the current object is equal to another object of the same type.
| obj | An object to compare with this object. | 
true if the current object is equal to the other parameter; otherwise, false. Implements xtd::iequatable< time_span >.
      
  | 
  noexcept | 
Returns a new xtd::time_spam object which value is the result of multiplication of this instance and the specified factor.
| factor | The value to be multiplied by. | 
      
  | 
  noexcept | 
Returns a new xtd::time_spam object which value is the result of multiplication of this instance and the specified factor.
| factor | The value to be multiplied by. | 
| time_span xtd::time_span::negate | ( | ) | const | 
Returns a new xtd::time_spam object whose value is the negated value of this instance.
| xtd::overflow_exception | The negated value of this instance cannot be represented by a xtd::time_spam; that is, the value of this instance is xtd::time_spam::min_value. | 
Converts the string representation of a time interval to its xtd::time_span equivalent.
| value | A string that specifies the time interval to convert. | 
| xtd::format_exception | value has an invalid format. | 
| value | represents a number that is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- At least one of the days, hours, minutes, or seconds components is outside its valid range.  | 
Returns a new xtd::time_span object whose value is the difference between the specified xtd::time_span object and this instance.
| ts | The time interval to be subtracted. | 
      
  | 
  overridevirtualnoexcept | 
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
Converts the value of the current xtd::time_span object to its equivalent string representation by using the specified format.
| format | A single format specifier that indicates how to format the value of this xtd::time_span. | 
| xtd::format_exception | The format parameter is not recognized or is not supported. | 
| Format | |
|---|---|
| 'c' | write duration with optional ticks d.hh.mm.ss.ticks | 
| 'd' | write absolute value of days d | 
| 'D' | write absolute value of days dd | 
| 'f' | write duration d.h.mm.ss.ticks | 
| 'F' | write duration d.hh.mm.ss.ticks | 
| 'g' | write duration with optional ticks d.h.mm.ss.ticks | 
| 'G' | write duration with optional ticks d.hh.mm.ss.ticks | 
| 'h' | write absolute value of hours h | 
| 'H' | write absolute value of hours hh | 
| 'l' | write absolute value of milliseconds | 
| 'L' | write absolute value of milliseconds fixed at 3 digits | 
| 'm' | write absolute value of minutes m | 
| 'M' | write absolute value of minutes mm | 
| 'o' | write optional minus sign | 
| 'o' | write minus or plus sign | 
| 's' | write absolute value of seconds s | 
| 'S' | write absolute value of seconds ss | 
| 't' | write absolute value of ticks | 
| 'T' | write absolute value of ticks fixed at 7 digits | 
      
  | 
  overridevirtual | 
Converts the value of the current xtd::time_span object to its equivalent string representation by using the specified format, and locale.
| format | A single format specifier that indicates how to format the value of this xtd::time_span. | 
| loc | An std::locale object that contains locale information (see std::locale). | 
| xtd::format_exception | The format parameter is not recognized or is not supported. | 
| Format | |
|---|---|
| 'c' | write duration with optional ticks d.hh.mm.ss.ticks | 
| 'd' | write absolute value of days d | 
| 'D' | write absolute value of days dd | 
| 'f' | write duration d.h.mm.ss.ticks | 
| 'F' | write duration d.hh.mm.ss.ticks | 
| 'g' | write duration with optional ticks d.h.mm.ss.ticks | 
| 'G' | write duration with optional ticks d.hh.mm.ss.ticks | 
| 'h' | write absolute value of hours h | 
| 'H' | write absolute value of hours hh | 
| 'l' | write absolute value of milliseconds | 
| 'L' | write absolute value of milliseconds fixed at 3 digits | 
| 'm' | write absolute value of minutes m | 
| 'M' | write absolute value of minutes mm | 
| 'o' | write optional minus sign | 
| 'o' | write minus or plus sign | 
| 's' | write absolute value of seconds s | 
| 'S' | write absolute value of seconds ss | 
| 't' | write absolute value of ticks | 
| 'T' | write absolute value of ticks fixed at 7 digits | 
Implements xtd::iformatable.
Returns a value that indicates whether two specified instances of xtd::time_span are equal.
| t1 | The first time interval to compare. | 
| t2 | The second time interval to compare. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of days, where the specification is accurate to the nearest millisecond.
| value | A number of days, accurate to the nearest millisecond. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of days, where the specification is accurate to the nearest millisecond.
| value | A number of days, accurate to the nearest millisecond. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
| value | A number of hours, accurate to the nearest millisecond. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
| value | A number of hours, accurate to the nearest millisecond. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of microseconds.
| value | A number of microseconds. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of microseconds.
| value | A number of microseconds. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of milliseconds.
| value | A number of milliseconds. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of milliseconds.
| value | A number of milliseconds. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
| value | A number of minutes, accurate to the nearest millisecond. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of minutes.
| value | A number of minutes. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of nanoseconds.
| value | A number of nanoseconds. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of nanoseconds.
| value | A number of nanoseconds. | 
      
  | 
  static | 
Returns a xtd::time_spam that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
| value | A number of minutes, accurate to the nearest second. | 
| xtd::overflow_exception | value is less than xtd::time_span::min_value or greater than xtd::time_span::max_value. -or- value is xtd::double_object::positive_infinity. -or- value is xtd::double_object::negative_infinity.  | 
| xtd::argument_exception | value is equal to xtd::double_object::NaN. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of seconds.
| value | A number of seconds. | 
Returns a xtd::time_spam that represents a specified time, where the specification is in units of ticks.
| value | A number of ticks that represent a time. | 
      
  | 
  static | 
Returns a xtd::time_span that represents a specified number of ticks.
| value | A number of ticks. | 
Converts the string representation of a time interval to its xtd::time_span equivalent and returns a value that indicates whether the conversion succeeded.
| value | A string that specifies the time interval to convert. | 
| result | When this method returns, contains an object that represents the time interval specified by value, or xtd::time_span::zero if the conversion failed. | 
      
  | 
  virtualnoexcept | 
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. | 
Reimplemented from xtd::object.
      
  | 
  inlinestaticnoexcept | 
Determines whether the specified object instances are considered equal.
| object_a | The first object to compare. | 
| object_b | The second object to compare. | 
      
  | 
  static | 
Represents the maximum xtd::time_span value. This field is read-only.
      
  | 
  static | 
Represents the minimum xtd::time_span value. This field is read-only.
      
  | 
  staticconstexpr | 
Represents the number of nanoseconds per tick. This field is constant.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 microsecond. This field is constant.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 millisecond. This field is constant.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 second.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 minute. This field is constant.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 hour. This field is constant.
      
  | 
  staticconstexpr | 
Represents the number of ticks in 1 day. This field is constant.
      
  | 
  static | 
Represents the zero xtd::time_span value. This field is read-only.