- Found in:
- Vanilla
Description
Wiki Description
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.
Documentation Comment
Converts a float game time (in terms of game days passed) to a string detailing the date
and time it represents in "MM/DD/YYYY HH:MM" format. A 24-hour clock is used, and the function
is latent (due to issues in the current architecture with returning strings from code)
Parameters
floatafGameTime
CK Wiki Description
The game time to convert to a string - in game days passed.
Examples
; 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()))Auto-Generated Example
float myFloat__afGameTime
string returnedValue = Utility.GameTimeToString(myFloat__afGameTime)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
