Struct TamrielicDate
Namespace: OblivionMP.SDK.Common.Calendar
Assembly: OblivionMP.SDK.Common.dll
A date on the Tamrielic calendar, counted the way the game counts it.
public readonly struct TamrielicDate : IComparable<TamrielicDate>, IEquatable<TamrielicDate>
Implements
IComparable<TamrielicDate>, IEquatable<TamrielicDate>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
The game's year has 365 days and no leap years. Game day 1 is the canonical start, Morndas, 27th of Last Seed,
433, which is also the default date. The date carries no era: which era a server plays in is up to it.
Constructors
TamrielicDate(uint)
The date of a game day.
public TamrielicDate(uint gameDaysPassed)
Parameters
gameDaysPassed uint
The game's day counter, as in GameTime.GameDay. The game starts on day 1.
TamrielicDate(int, Month, int)
A date from its day, month, and year.
public TamrielicDate(int day, Month month, int year)
Parameters
day int
The day of the month, from 1.
month Month
The month.
year int
The year, from 1.
Exceptions
The month is not defined, the year is below 1, or the month has no such day.
Properties
Birthsign
The birthsign of someone born on this date: the sign that rules its month.
public Birthsign Birthsign { get; }
Property Value
Day
The day of the month, from 1.
public int Day { get; }
Property Value
GameDaysPassed
The game's day counter on this date, the inverse of UInt32). Below 1 before the game's start.
public long GameDaysPassed { get; }
Property Value
GameStart
The game's start, Morndas, 27th of Last Seed, 433: game day 1.
public static TamrielicDate GameStart { get; }
Property Value
Month
The month.
public Month Month { get; }
Property Value
Weekday
The day of the week.
public Weekday Weekday { get; }
Property Value
Year
The year.
public int Year { get; }
Property Value
Methods
CompareTo(TamrielicDate)
Orders dates by day.
public int CompareTo(TamrielicDate other)
Parameters
other TamrielicDate
Returns
DaysIn(Month)
The number of days in a month, which is the same every year.
public static int DaysIn(Month month)
Parameters
month Month
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
Equals(TamrielicDate)
public bool Equals(TamrielicDate other)
Parameters
other TamrielicDate
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
The date without an era, such as "Morndas, 27th of Last Seed, 433".
public override string ToString()
Returns
Operators
operator ==(TamrielicDate, TamrielicDate)
public static bool operator ==(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate
Returns
operator >(TamrielicDate, TamrielicDate)
public static bool operator >(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate
Returns
operator >=(TamrielicDate, TamrielicDate)
public static bool operator >=(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate
Returns
operator !=(TamrielicDate, TamrielicDate)
public static bool operator !=(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate
Returns
operator <(TamrielicDate, TamrielicDate)
public static bool operator <(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate
Returns
operator <=(TamrielicDate, TamrielicDate)
public static bool operator <=(TamrielicDate left, TamrielicDate right)
Parameters
left TamrielicDate
right TamrielicDate