Click or drag to resize

Date Structure

X#
Internal type that implements the VO Compatible DATE type
This type has many operators and implicit converters that normally are never directly called from user code. It holds year, month, day in 32 bits. For date calculations it uses the System.DateTime calculation logic. There are implicit converters between Date and DateTime.

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
[SerializableAttribute]
[StructLayoutAttribute(LayoutKind.Explicit, Size = 4, CharSet := CharSet.Ansi)]
 STRUCTURE Date IMPLEMENTS IComparable, 
	IFormattable, IConvertible, IDate, IComparable<DATE>, IEquatable<DATE>, 
	ISerializable
Request Example View Source

The Date type exposes the following members.

Constructors
  NameDescription
Public methodDate(DateTime)
Initializes a new instance of the Date class
Public methodDate(Int64)
Initializes a new instance of the Date class
Public methodDate(String)
Initializes a new instance of the Date class
Public methodDate(IDate)
Initializes a new instance of the Date class
Public methodDate(SerializationInfo, StreamingContext)
Construct a value from serialized data
Public methodDate(String, String)
Initializes a new instance of the Date class
Public methodDate(Long, Long, Long)
Initializes a new instance of the Date class
Public methodDate(DWord, DWord, DWord)
Initializes a new instance of the Date class
Top
Properties
  NameDescription
Public propertyDay
Day part of the date. A number between 0 an 31
Public propertyIsEmpty
Public propertyMonth
Month part of the date. A number between 0 an 12
Public propertyValue
Public propertyYear
Year part of the date. A number between 0 and 9999
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(Date)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides Equals(Object).)
Public methodEquals(Date)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides GetHashCode.)
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetTypeCode
Returns the TypeCode for this instance.
Public methodSubtract(Double)
Public methodSubtract(Long)
Public methodSubtract(Int64)
Public methodSubtract(TimeSpan)
Public methodSubtract(DWord)
Public methodSubtract(UInt64)
Public methodSubtract(Date)
Public methodSubtract(Usual)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ToString.)
Public methodToString(IFormatProvider)
Converts the value of this instance to an equivalent String using the specified culture-specific formatting information.
Public methodToString(String)
Converts the value of the current DateTime object to its equivalent string representation using the specified format and the formatting conventions of the current culture.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Date, Double)
Public operatorStatic memberAddition(Date, Long)
Public operatorStatic memberAddition(Date, Int64)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, TimeSpan)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, DWord)
Public operatorStatic memberAddition(Date, UInt64)
Public operatorStatic memberAddition(Date, Usual)
Public operatorStatic memberDecrement
Public operatorStatic memberEquality
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Long to Date)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(DWord to Date)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(Date to DWord)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(Date to Long)
This converter is used in code generated by the compiler when needed.
Public operatorStatic memberGreaterThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberGreaterThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(DateTime to Date)
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Date to DateTime)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberIncrement
Public operatorStatic memberInequality
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Double)
Public operatorStatic memberSubtraction(Date, Long)
Public operatorStatic memberSubtraction(Date, Int64)
Public operatorStatic memberSubtraction(Date, TimeSpan)
Public operatorStatic memberSubtraction(Date, DWord)
Public operatorStatic memberSubtraction(Date, UInt64)
Public operatorStatic memberSubtraction(Date, Date)
Public operatorStatic memberSubtraction(Date, Usual)
Top
Fields
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIConvertibleToBoolean
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToByte
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToChar
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDateTime
Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDecimal
Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDouble
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt16
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt32
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt64
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSByte
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSingle
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToType
Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt16
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt32
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt64
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
Top
See Also