Class NcDateType
A data type for a calendar date.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcDateType : IEquatable<NcDateType>
Properties
Context
ncDateType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcDateType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcDateType.ContextEnum> | ncDateType JSON-LD context |
Date
A full date. NIEM reference is nc:Date
Declaration
[DataMember(Name = "date")]
public List<NiemXsdate> Date { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsdate> | A full date. NIEM reference is nc:Date |
Day
A day date. NIEM reference is nc:DayDate
Declaration
[DataMember(Name = "day")]
public List<NiemXsgDay> Day { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsgDay> | A day date. NIEM reference is nc:DayDate |
FiscalYear
A year of a twelve month period that does not necessarily correspond to the calendar year. NIEM reference is nc:FiscalYearDate
Declaration
[DataMember(Name = "fiscalYear")]
public List<NcFiscalYearDateType> FiscalYear { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcFiscalYearDateType> | A year of a twelve month period that does not necessarily correspond to the calendar year. NIEM reference is nc:FiscalYearDate |
MarginOfErrorDuration
Gets or Sets MarginOfErrorDuration
Declaration
[DataMember(Name = "marginOfErrorDuration")]
public NiemXsduration MarginOfErrorDuration { get; set; }
Property Value
Type | Description |
---|---|
NiemXsduration |
Month
A month. NIEM reference is nc:MonthDate
Declaration
[DataMember(Name = "month")]
public List<NiemXsgMonth> Month { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsgMonth> | A month. NIEM reference is nc:MonthDate |
QuarterId
An identifier of a three-month period in a calendar or fiscal year. NIEM reference is nc:QuarterID
Declaration
[DataMember(Name = "quarterId")]
public List<NcQuarterIDType> QuarterId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuarterIDType> | An identifier of a three-month period in a calendar or fiscal year. NIEM reference is nc:QuarterID |
Range
A time period measured by a starting and ending point. NIEM reference is nc:DateRange
Declaration
[DataMember(Name = "range")]
public List<NcDateRangeType> Range { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateRangeType> | A time period measured by a starting and ending point. NIEM reference is nc:DateRange |
Time
A full date and time. NIEM reference is nc:DateTime
Declaration
[DataMember(Name = "time")]
public List<NiemXsdateTime> Time { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsdateTime> | A full date and time. NIEM reference is nc:DateTime |
Year
A year. NIEM reference is nc:YearDate
Declaration
[DataMember(Name = "year")]
public List<NiemXsgYear> Year { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsgYear> | A year. NIEM reference is nc:YearDate |
YearMonth
A year and month. NIEM reference is nc:YearMonthDate
Declaration
[DataMember(Name = "yearMonth")]
public List<NiemXsgYearMonth> YearMonth { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsgYearMonth> | A year and month. NIEM reference is nc:YearMonthDate |
ZuluTime
A date and time with no offset from Coordinated Universal Time (UTC). NIEM reference is nc:ZuluDateTime
Declaration
[DataMember(Name = "zuluTime")]
public List<NcZuluDateTimeType> ZuluTime { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcZuluDateTimeType> | A date and time with no offset from Coordinated Universal Time (UTC). NIEM reference is nc:ZuluDateTime |
Methods
Equals(NcDateType)
Returns true if NcDateType instances are equal
Declaration
public bool Equals(NcDateType other)
Parameters
Type | Name | Description |
---|---|---|
NcDateType | other | Instance of NcDateType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcDateType, NcDateType)
Declaration
public static bool operator ==(NcDateType left, NcDateType right)
Parameters
Type | Name | Description |
---|---|---|
NcDateType | left | |
NcDateType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcDateType, NcDateType)
Declaration
public static bool operator !=(NcDateType left, NcDateType right)
Parameters
Type | Name | Description |
---|---|---|
NcDateType | left | |
NcDateType | right |
Returns
Type | Description |
---|---|
System.Boolean |