GameTimeToString - Utility: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Catwheezle
(→‎See Also: Ordering, added item)
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
string Function GameTimeToString(float afGameTime) native global
string Function GameTimeToString(float afGameTime) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Print out the current date and time - will look something like "Current date and time: 07/12/0713 10:31"
; 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()))
Debug.Trace("Current date and time: " + Utility.GameTimeToString(Utility.GetCurrentGameTime()))
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu