GameTimeToString - Utility

From the Fallout4 CreationKit Wiki
Revision as of 12:55, 3 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Utility Script

Converts the passed-in game time (in game days passed) to a string detailing the date and time it represents. The resulting format is: "MM/DD/YYYY HH:MM" and uses a 24-hour clock.

Syntax[edit | edit source]

string Function GameTimeToString(float afGameTime) native global

Parameters[edit | edit source]

  • afGameTime: The game time to convert to a string - in game days passed.

Return Value[edit | edit source]

A string representing the date and time that the game time represents.

Examples[edit | edit source]

; Print out the current date and time - will look something like "Current date and time: 07/12/0713 10:31"
Debug.Trace("Current date and time: " + Utility.GameTimeToString(Utility.GetCurrentGameTime()))

See Also[edit | edit source]