Click or drag to resize

StartOfYear Structure

Specifies a definition of "years" that begin on a specified day of the year (e.g. January 1st for calendar years).

Namespace:  DegreeDays.Time
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public struct StartOfYear : IEquatable<StartOfYear>, 
	IComparable<StartOfYear>

The StartOfYear type exposes the following members.

Constructors
  NameDescription
Public methodStartOfYear(Int32, Int32)
Constructs a StartOfYear specifying a definition of "years" that begin on the specified first day of the year.
Top
Properties
  NameDescription
Public propertyDayOfMonth
Gets the number between 1 and the number of days in MonthOfYear (inclusive) indicating which day in MonthOfYear is the first day of the "year" defined by this StartOfYear.
Public propertyMonthOfYear
Gets the number between 1 (January) and 12 (December) indicating the month of the calendar year in which the "year" defined by this StartOfYear starts.
Top
Methods
  NameDescription
Public methodCompareTo(StartOfYear)
Compares this StartOfYear with the specified comparison StartOfYear for chronological order.
Public methodEquals(Object)
Returns true if obj is a StartOfYear instance representing the same day of the year as this; false otherwise.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(StartOfYear)
Returns true if other represents the same day of the year as this; false otherwise.
Public methodStatic memberFromString(String)
Parses a string representation of a StartOfYear in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601).
Public methodGetHashCode
Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode.)
Public methodToString
Returns a non-null, non-empty string representation of this object in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601).
(Overrides ValueTypeToString.)
Public methodStatic memberTryFromString(String, StartOfYear)
Tries to parse a string representation of a StartOfYear in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601). Returns true if it succeeds.
Top
Operators
  NameDescription
Public operatorStatic memberEquality(StartOfYear, StartOfYear)
Determines whether two specified StartOfYear instances are equal.
Public operatorStatic memberGreaterThan(StartOfYear, StartOfYear)
Determines whether one specified StartOfYear is later than another specified StartOfYear.
Public operatorStatic memberGreaterThanOrEqual(StartOfYear, StartOfYear)
Determines whether one specified StartOfYear is the same as or later than another specified StartOfYear.
Public operatorStatic memberInequality(StartOfYear, StartOfYear)
Determines whether two specified StartOfYear instances are not equal.
Public operatorStatic memberLessThan(StartOfYear, StartOfYear)
Determines whether one specified StartOfYear is earlier than another specified StartOfYear.
Public operatorStatic memberLessThanOrEqual(StartOfYear, StartOfYear)
Determines whether one specified StartOfYear is the same as or earlier than another specified StartOfYear.
Top
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once.
See Also