YearMonthDay Structure |
Namespace: AGI.Foundation.Time
The YearMonthDay type exposes the following members.
Name | Description | |
---|---|---|
![]() | YearMonthDay(Int32) |
Initializes a YearMonthDay in the Gregorian calendar from the
provided astronomical Julian day number, assuming the beginning of the Julian
day (noon).
|
![]() | YearMonthDay(JulianDate) |
Initializes a new instance from a JulianDate.
|
![]() | YearMonthDay(Int32, Int32) |
Initializes a YearMonthDay from the provided values.
|
![]() | YearMonthDay(Int32, Int32, Int32) |
Initializes a YearMonthDay from the provided values.
|
Name | Description | |
---|---|---|
![]() | Day |
Gets the day of the month (in the range 1 through the number of days in the
month).
|
![]() | DayOfWeek | Gets the day of the week represented by this instance. |
![]() | DayOfYear |
Gets the day of the year (in the range 1 through the number of days in the year).
|
![]() | JulianDayNumber |
Gets the Julian day number for this YearMonthDay instance,
assuming noon on this day.
|
![]() | Month |
Gets the month of the year (in the range 1 through 12).
|
![]() | Year |
Gets the year.
|
Name | Description | |
---|---|---|
![]() | CompareTo(Object) |
Compares this instance with another instance of the same type.
|
![]() | CompareTo(YearMonthDay) |
Compares this instance with another instance of the same type.
|
![]() ![]() | DaysInMonth |
Provides the number of days in the month of the indicated year.
|
![]() ![]() | DaysInYear |
Provides the number of days in the indicated year.
|
![]() | Equals(Object) |
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(YearMonthDay) |
Indicates whether another instance of this type is exactly equal to this instance.
|
![]() | GetHashCode |
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsLeapYear |
Indicates whether the year in question is a leap year.
|
![]() ![]() | IsValidDate |
Indicates whether the year, month, and day are a valid representation.
|
![]() | ToString |
Returns a string formatted as Year:Month:Day
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
![]() ![]() | Equality |
Returns if the two instances are exactly equal.
|
![]() ![]() | GreaterThan |
Returns if left is greater than right.
|
![]() ![]() | GreaterThanOrEqual |
Returns if left is greater than or equal to right.
|
![]() ![]() | Inequality |
Returns if the two instances are not exactly equal.
|
![]() ![]() | LessThan |
Returns if left is less than right.
|
![]() ![]() | LessThanOrEqual |
Returns if left is less than or equal to right.
|