Class DaggerfallDateTime
Inheritance
DaggerfallDateTime
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class DaggerfallDateTime
Constructors
|
Improve this Doc
View Source
DaggerfallDateTime()
Declaration
public DaggerfallDateTime()
|
Improve this Doc
View Source
DaggerfallDateTime(DaggerfallDateTime)
Declaration
public DaggerfallDateTime(DaggerfallDateTime source)
Parameters
|
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
Fields
|
Improve this Doc
View Source
DawnHour
Declaration
public const int DawnHour = 6
Field Value
|
Improve this Doc
View Source
Day
Declaration
Field Value
|
Improve this Doc
View Source
DaysPerMonth
Declaration
public const int DaysPerMonth = 30
Field Value
|
Improve this Doc
View Source
DaysPerWeek
Declaration
public const int DaysPerWeek = 7
Field Value
|
Improve this Doc
View Source
DaysPerYear
Declaration
public const int DaysPerYear = 360
Field Value
|
Improve this Doc
View Source
DuskHour
Declaration
public const int DuskHour = 18
Field Value
|
Improve this Doc
View Source
Hour
Declaration
Field Value
|
Improve this Doc
View Source
HoursPerDay
Declaration
public const int HoursPerDay = 24
Field Value
|
Improve this Doc
View Source
LightsOffHour
Declaration
public const int LightsOffHour = 8
Field Value
|
Improve this Doc
View Source
LightsOnHour
Declaration
public const int LightsOnHour = 17
Field Value
|
Improve this Doc
View Source
MidAfternoonHour
Declaration
public const int MidAfternoonHour = 15
Field Value
|
Improve this Doc
View Source
MiddayHour
Declaration
public const int MiddayHour = 12
Field Value
|
Improve this Doc
View Source
MidMorningHour
Declaration
public const int MidMorningHour = 10
Field Value
|
Improve this Doc
View Source
MidnightHour
Declaration
public const int MidnightHour = 0
Field Value
|
Improve this Doc
View Source
Minute
Declaration
Field Value
|
Improve this Doc
View Source
MinutesPerDay
Declaration
public const int MinutesPerDay = 1440
Field Value
|
Improve this Doc
View Source
MinutesPerHour
Declaration
public const int MinutesPerHour = 60
Field Value
|
Improve this Doc
View Source
Month
Declaration
Field Value
|
Improve this Doc
View Source
MonthsPerYear
Declaration
public const int MonthsPerYear = 12
Field Value
|
Improve this Doc
View Source
Second
Declaration
Field Value
|
Improve this Doc
View Source
SecondsPerDay
Declaration
public const int SecondsPerDay = 86400
Field Value
|
Improve this Doc
View Source
SecondsPerHour
Declaration
public const int SecondsPerHour = 3600
Field Value
|
Improve this Doc
View Source
SecondsPerMinute
Declaration
public const int SecondsPerMinute = 60
Field Value
|
Improve this Doc
View Source
SecondsPerMonth
Declaration
public const int SecondsPerMonth = 2592000
Field Value
|
Improve this Doc
View Source
SecondsPerWeek
Declaration
public const int SecondsPerWeek = 604800
Field Value
|
Improve this Doc
View Source
SecondsPerYear
Declaration
public const int SecondsPerYear = 31104000
Field Value
|
Improve this Doc
View Source
Year
Declaration
Field Value
Properties
|
Improve this Doc
View Source
BirthSignName
Gets birth sign name for current month.
Declaration
public string BirthSignName { get; }
Property Value
|
Improve this Doc
View Source
BirthSignValue
Gets current birth sign enum value.
Declaration
public DaggerfallDateTime.BirthSigns BirthSignValue { get; }
Property Value
|
Improve this Doc
View Source
DayName
Gets current day as string.
Declaration
public string DayName { get; }
Property Value
|
Improve this Doc
View Source
DayOfMonth
Declaration
public int DayOfMonth { get; }
Property Value
|
Improve this Doc
View Source
DayOfMonthWithSuffix
Gets day of month with suffix (ex: 1st, 2nd, ... 30th)
Declaration
public string DayOfMonthWithSuffix { get; }
Property Value
|
Improve this Doc
View Source
DayOfYear
Declaration
public int DayOfYear { get; }
Property Value
|
Improve this Doc
View Source
DayValue
Gets current day enum value.
Declaration
public DaggerfallDateTime.Days DayValue { get; }
Property Value
|
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
|
Improve this Doc
View Source
IsDay
Declaration
public bool IsDay { get; }
Property Value
|
Improve this Doc
View Source
IsNight
True when full night has fallen.
Declaration
public bool IsNight { get; }
Property Value
|
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
|
Improve this Doc
View Source
MinuteOfDay
Gets minute of day 0-1339
Declaration
public int MinuteOfDay { get; }
Property Value
|
Improve this Doc
View Source
MonthName
Gets current month as string.
Declaration
public string MonthName { get; }
Property Value
|
Improve this Doc
View Source
MonthOfYear
Declaration
public int MonthOfYear { get; }
Property Value
|
Improve this Doc
View Source
MonthValue
Gets current month enum value.
Declaration
public DaggerfallDateTime.Months MonthValue { get; }
Property Value
|
Improve this Doc
View Source
SeasonName
Gets current season as string.
Declaration
public string SeasonName { get; }
Property Value
|
Improve this Doc
View Source
SeasonValue
Gets current season enum value.
Declaration
public DaggerfallDateTime.Seasons SeasonValue { get; }
Property Value
|
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
Methods
|
Improve this Doc
View Source
Clone()
Clone time to a new instance.
Declaration
public DaggerfallDateTime Clone()
Returns
|
Improve this Doc
View Source
DateString()
Get date string in format of Day Name the xth of Month Name
Declaration
public string DateString()
Returns
|
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
|
Improve this Doc
View Source
Equals(DaggerfallDateTime)
True when date times are equal.
Declaration
public bool Equals(DaggerfallDateTime other)
Parameters
Returns
|
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
Returns
|
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
Returns
|
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
|
Improve this Doc
View Source
MidDateTimeString()
Gets a mid time string of HH:MM:SS DD MonthName 3EYYY
Declaration
public string MidDateTimeString()
Returns
|
Improve this Doc
View Source
MinTimeString()
Gets minimum time string of HH:MM.
Declaration
public string MinTimeString()
Returns
|
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
|
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
|
Improve this Doc
View Source
ToSeconds()
Gets the current time in seconds since year zero.
Declaration
Returns