Skip to main content
Version: 1.2.0

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​

ArgumentOutOfRangeException

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​

Birthsign

Day​

The day of the month, from 1.

public int Day { get; }

Property Value​

int

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​

long

GameStart​

The game's start, Morndas, 27th of Last Seed, 433: game day 1.

public static TamrielicDate GameStart { get; }

Property Value​

TamrielicDate

Month​

The month.

public Month Month { get; }

Property Value​

Month

Weekday​

The day of the week.

public Weekday Weekday { get; }

Property Value​

Weekday

Year​

The year.

public int Year { get; }

Property Value​

int

Methods​

CompareTo(TamrielicDate)​

Orders dates by day.

public int CompareTo(TamrielicDate other)

Parameters​

other TamrielicDate

Returns​

int

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​

int

Equals(object)​

public override bool Equals(object obj)

Parameters​

obj object

Returns​

bool

Equals(TamrielicDate)​

public bool Equals(TamrielicDate other)

Parameters​

other TamrielicDate

Returns​

bool

GetHashCode()​

public override int GetHashCode()

Returns​

int

ToString()​

The date without an era, such as "Morndas, 27th of Last Seed, 433".

public override string ToString()

Returns​

string

Operators​

operator ==(TamrielicDate, TamrielicDate)​

public static bool operator ==(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

operator >(TamrielicDate, TamrielicDate)​

public static bool operator >(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

operator >=(TamrielicDate, TamrielicDate)​

public static bool operator >=(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

operator !=(TamrielicDate, TamrielicDate)​

public static bool operator !=(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

operator <(TamrielicDate, TamrielicDate)​

public static bool operator <(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

operator <=(TamrielicDate, TamrielicDate)​

public static bool operator <=(TamrielicDate left, TamrielicDate right)

Parameters​

left TamrielicDate

right TamrielicDate

Returns​

bool

  • Remarks
  • Constructors
    • TamrielicDate(uint)
    • TamrielicDate(int, Month, int)
  • Properties
    • Birthsign
    • Day
    • GameDaysPassed
    • GameStart
    • Month
    • Weekday
    • Year
  • Methods
    • CompareTo(TamrielicDate)
    • DaysIn(Month)
    • Equals(object)
    • Equals(TamrielicDate)
    • GetHashCode()
    • ToString()
  • Operators
    • operator ==(TamrielicDate, TamrielicDate)
    • operator >(TamrielicDate, TamrielicDate)
    • operator >=(TamrielicDate, TamrielicDate)
    • operator !=(TamrielicDate, TamrielicDate)
    • operator <(TamrielicDate, TamrielicDate)
    • operator <=(TamrielicDate, TamrielicDate)