Background for Skyrim SE
Member of the Utility script
floatfunctionGetCurrentGameTime()NativeGlobal

Description

Wiki Description

Obtains the current game time in terms of game days passed (same as the global variable)

Documentation Comment

Obtains the current game time in terms of game days passed (same as the global variable)


Caveats

CK Wiki - Notes

  • A bug occurs anytime you fast travel 4 hours or less before midnight and the distance is long enough that it takes over a day to get there. This results in the day of the week falling out of sync and the date being skipped(23 loredas becomes, 25 sundas instead of 24 sundas). In calendar terms, you're basically using a whole new calendar for the year, every time this bug occurs.
  • It is much faster to use the GlobalVariable "GameDaysPassed" instead.

Examples

; What is the current in-game time?
Debug.Trace("The current time is: " + Utility.GetCurrentGameTime() + " in game days passed")

Auto-Generated Example

float returnedValue = Utility.GetCurrentGameTime()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.