Show / Hide Table of Contents

Class DaggerfallDateTime

Time and date implementation for Daggerfall's specific calendar system. Daggerfall has fixed 30-day months. See below link for more information. http://www.uesp.net/wiki/Lore:Calendar#Daggerfall_Calendar

Inheritance
Object
DaggerfallDateTime
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class DaggerfallDateTime

Constructors

| Improve this Doc View Source

DaggerfallDateTime()

Default constructor.

Declaration
public DaggerfallDateTime()
| Improve this Doc View Source

DaggerfallDateTime(DaggerfallDateTime)

Copy constructor.

Declaration
public DaggerfallDateTime(DaggerfallDateTime source)
Parameters
Type Name Description
DaggerfallDateTime source

Source time to copy from.

| Improve this Doc View Source

DaggerfallDateTime(Int32, Int32, Int32, Int32, Int32, Single)

Construct from time components.

Declaration
public DaggerfallDateTime(int year, int month, int day, int hour, int minute, float second)
Parameters
Type Name Description
Int32 year
Int32 month
Int32 day
Int32 hour
Int32 minute
Single second

Fields

| Improve this Doc View Source

DawnHour

Declaration
public const int DawnHour = 6
Field Value
Type Description
Int32
| Improve this Doc View Source

Day

Declaration
public int Day
Field Value
Type Description
Int32
| Improve this Doc View Source

DaysPerMonth

Declaration
public const int DaysPerMonth = 30
Field Value
Type Description
Int32
| Improve this Doc View Source

DaysPerWeek

Declaration
public const int DaysPerWeek = 7
Field Value
Type Description
Int32
| Improve this Doc View Source

DaysPerYear

Declaration
public const int DaysPerYear = 360
Field Value
Type Description
Int32
| Improve this Doc View Source

DuskHour

Declaration
public const int DuskHour = 18
Field Value
Type Description
Int32
| Improve this Doc View Source

Hour

Declaration
public int Hour
Field Value
Type Description
Int32
| Improve this Doc View Source

HoursPerDay

Declaration
public const int HoursPerDay = 24
Field Value
Type Description
Int32
| Improve this Doc View Source

LightsOffHour

Declaration
public const int LightsOffHour = 8
Field Value
Type Description
Int32
| Improve this Doc View Source

LightsOnHour

Declaration
public const int LightsOnHour = 17
Field Value
Type Description
Int32
| Improve this Doc View Source

MidAfternoonHour

Declaration
public const int MidAfternoonHour = 15
Field Value
Type Description
Int32
| Improve this Doc View Source

MiddayHour

Declaration
public const int MiddayHour = 12
Field Value
Type Description
Int32
| Improve this Doc View Source

MidMorningHour

Declaration
public const int MidMorningHour = 10
Field Value
Type Description
Int32
| Improve this Doc View Source

MidnightHour

Declaration
public const int MidnightHour = 0
Field Value
Type Description
Int32
| Improve this Doc View Source

Minute

Declaration
public int Minute
Field Value
Type Description
Int32
| Improve this Doc View Source

MinutesPerDay

Declaration
public const int MinutesPerDay = 1440
Field Value
Type Description
Int32
| Improve this Doc View Source

MinutesPerHour

Declaration
public const int MinutesPerHour = 60
Field Value
Type Description
Int32
| Improve this Doc View Source

Month

Declaration
public int Month
Field Value
Type Description
Int32
| Improve this Doc View Source

MonthsPerYear

Declaration
public const int MonthsPerYear = 12
Field Value
Type Description
Int32
| Improve this Doc View Source

Second

Declaration
public float Second
Field Value
Type Description
Single
| Improve this Doc View Source

SecondsPerDay

Declaration
public const int SecondsPerDay = 86400
Field Value
Type Description
Int32
| Improve this Doc View Source

SecondsPerHour

Declaration
public const int SecondsPerHour = 3600
Field Value
Type Description
Int32
| Improve this Doc View Source

SecondsPerMinute

Declaration
public const int SecondsPerMinute = 60
Field Value
Type Description
Int32
| Improve this Doc View Source

SecondsPerMonth

Declaration
public const int SecondsPerMonth = 2592000
Field Value
Type Description
Int32
| Improve this Doc View Source

SecondsPerWeek

Declaration
public const int SecondsPerWeek = 604800
Field Value
Type Description
Int32
| Improve this Doc View Source

SecondsPerYear

Declaration
public const int SecondsPerYear = 31104000
Field Value
Type Description
Int32
| Improve this Doc View Source

Year

Declaration
public int Year
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

BirthSignName

Gets birth sign name for current month.

Declaration
public string BirthSignName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

BirthSignValue

Gets current birth sign enum value.

Declaration
public DaggerfallDateTime.BirthSigns BirthSignValue { get; }
Property Value
Type Description
DaggerfallDateTime.BirthSigns
| Improve this Doc View Source

DayName

Gets current day as string.

Declaration
public string DayName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

DayOfMonth

Gets day of month 1-30

Declaration
public int DayOfMonth { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

DayOfMonthWithSuffix

Gets day of month with suffix (ex: 1st, 2nd, ... 30th)

Declaration
public string DayOfMonthWithSuffix { get; }
Property Value
Type Description
String
| Improve this Doc View Source

DayOfYear

Gets day of year 1-360.

Declaration
public int DayOfYear { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

DayValue

Gets current day enum value.

Declaration
public DaggerfallDateTime.Days DayValue { get; }
Property Value
Type Description
DaggerfallDateTime.Days
| Improve this Doc View Source

IsCityLightsOn

True from slightly before dusk until slightly after dawn. Daggerfall NPCs never sleep.

Declaration
public bool IsCityLightsOn { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsDay

True during the day.

Declaration
public bool IsDay { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsNight

True when full night has fallen.

Declaration
public bool IsNight { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

MassarLunarPhase

Gets current lunar phase for Massar. Uses same logic as Enhanced Sky mod so phases should be in sync.

Declaration
public LunarPhases MassarLunarPhase { get; }
Property Value
Type Description
LunarPhases
| Improve this Doc View Source

MinuteOfDay

Gets minute of day 0-1339

Declaration
public int MinuteOfDay { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MonthName

Gets current month as string.

Declaration
public string MonthName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

MonthOfYear

Gets month of year 1-12.

Declaration
public int MonthOfYear { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MonthValue

Gets current month enum value.

Declaration
public DaggerfallDateTime.Months MonthValue { get; }
Property Value
Type Description
DaggerfallDateTime.Months
| Improve this Doc View Source

SeasonName

Gets current season as string.

Declaration
public string SeasonName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

SeasonValue

Gets current season enum value.

Declaration
public DaggerfallDateTime.Seasons SeasonValue { get; }
Property Value
Type Description
DaggerfallDateTime.Seasons
| Improve this Doc View Source

SecundaLunarPhase

Gets current lunar phase for Secunda. Uses same logic as Enhanced Sky mod so phases should be in sync.

Declaration
public LunarPhases SecundaLunarPhase { get; }
Property Value
Type Description
LunarPhases

Methods

| Improve this Doc View Source

Clone()

Clone time to a new instance.

Declaration
public DaggerfallDateTime Clone()
Returns
Type Description
DaggerfallDateTime

DaggerfallDateTime clone.

| Improve this Doc View Source

DateString()

Get date string in format of Day Name the xth of Month Name

Declaration
public string DateString()
Returns
Type Description
String
| Improve this Doc View Source

DateTimeString()

Gets a date time string of "HH:MM:SS on xth of MonthName, 3EYYY"

Declaration
public string DateTimeString()
Returns
Type Description
String
| Improve this Doc View Source

Equals(DaggerfallDateTime)

True when date times are equal.

Declaration
public bool Equals(DaggerfallDateTime other)
Parameters
Type Name Description
DaggerfallDateTime other
Returns
Type Description
Boolean
| Improve this Doc View Source

FromClassicDaggerfallTime(UInt32)

Sets current time from classic Daggerfall minutes (e.g. found in vanilla save files)

Declaration
public void FromClassicDaggerfallTime(uint time)
Parameters
Type Name Description
UInt32 time
| Improve this Doc View Source

FromSeconds(UInt64)

Sets the time using a time expressed in seconds since year zero.

Declaration
public void FromSeconds(ulong time)
Parameters
Type Name Description
UInt64 time
| Improve this Doc View Source

GreaterThan(DaggerfallDateTime)

True when this date time is greater than another date time.

Declaration
public bool GreaterThan(DaggerfallDateTime other)
Parameters
Type Name Description
DaggerfallDateTime other
Returns
Type Description
Boolean
| Improve this Doc View Source

LessThan(DaggerfallDateTime)

True when this date time is less than another date time.

Declaration
public bool LessThan(DaggerfallDateTime other)
Parameters
Type Name Description
DaggerfallDateTime other
Returns
Type Description
Boolean
| Improve this Doc View Source

LongDateTimeString()

Gets a long date time string of "HH:MM:SS on Dayname, xth of MonthName, 3EYYY"

Declaration
public string LongDateTimeString()
Returns
Type Description
String
| Improve this Doc View Source

MidDateTimeString()

Gets a mid time string of HH:MM:SS DD MonthName 3EYYY

Declaration
public string MidDateTimeString()
Returns
Type Description
String
| Improve this Doc View Source

MinTimeString()

Gets minimum time string of HH:MM.

Declaration
public string MinTimeString()
Returns
Type Description
String
| Improve this Doc View Source

RaiseTime(Single)

Raise time by seconds. Partial seconds are supported.

Declaration
public void RaiseTime(float seconds)
Parameters
Type Name Description
Single seconds

Amount in seconds to raise time values.

| Improve this Doc View Source

SetClassicGameStartTime()

Sets the classic game start time of 13:30 4th Morning Star 3E405.

Declaration
public void SetClassicGameStartTime()
| Improve this Doc View Source

ShortTimeString()

Gets a short time string of HH:MM:SS.

Declaration
public string ShortTimeString()
Returns
Type Description
String
| Improve this Doc View Source

ToClassicDaggerfallTime()

Gets current time from classic Daggerfall minutes (e.g. found in vanilla save files)

Declaration
public uint ToClassicDaggerfallTime()
Returns
Type Description
UInt32
| Improve this Doc View Source

ToSeconds()

Gets the current time in seconds since year zero.

Declaration
public ulong ToSeconds()
Returns
Type Description
UInt64
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX