This is preliminary documentation and is subject to change.

DateTimeValue Class

The date time value class, which can be a string or an integer, with flags.

Definition

Namespace: MoreDateTime
Assembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
C#
public class DateTimeValue
Inheritance
Object    DateTimeValue

Constructors

DateTimeValue Initializes a new instance of the DateTimeValue class.
DateTimeValue(Int32, DateTimeValueValueFlags) Initializes a new instance of the DateTimeValue class.
DateTimeValue(String, DateTimeValueValueFlags) Initializes a new instance of the DateTimeValue class.

Properties

InsignificantDigits Gets or sets the insignificant digits, the number of digits in the number minus the significant digits.
IsApproximate Gets or sets a value indicating whether is approximate.
IsExact Gets or sets a value indicating whether is exact.
IsLong Gets or sets a value indicating whether is exact.
IsNone Gets or sets a value indicating whether is exact.
IsRegularYear Gets a value indicating whether the year is between -9999 and 9999.
IsUncertain Gets or sets a value indicating whether is uncertain.
IsUnknown Gets or sets a value indicating whether is unknown.
IsUnspecified Gets or sets a value indicating whether is unspecified.
PrefixQualifier Gets or sets a value indicating whether the qualifier should be prefixed (or suffixed if false)
QualifierFlags Gets the flags associated with Qualifiers
SignificantDigits Gets or sets the significant digits.

Methods

ToNumberString Formats the integer value as a string with leading zeros according to the significant digits.
ToString Returns a string that represents the current object.
(Overrides ObjectToString)

Operators

(String to DateTimeValue) Explicit conversion from string to DateTimeValue
(DateTimeValue to Int32) explicit conversion from DateTimeValue to integer
(DateTimeValue to String) Implicit conversion from DateTimeValue to string
(Int32 to DateTimeValue) implicit conversion from integer to DateTimeValue

Fields

Empty An object representing an empty value.

Extension Methods

ShouldBe compares the value to the expected value
(Defined by DateTimeValueTestExtensions)
ShouldBe compares the value to the expected value
(Defined by DateTimeValueTestExtensions)
ShouldBe compares the value to the expected value
(Defined by DateTimeValueTestExtensions)

See Also