Skip to content

StringTime

Hyomoto edited this page Nov 29, 2020 · 12 revisions
Jump To Go Back Arguments Methods Variables

StringTime( seconds, decimals, format )

Implements: String

Given a time, in seconds, will output it as formatted time string.

var _time = new StringTime( get_timer(), 0, "$H hours, $M minutes, and $seconds" );

show_debug_message( _time );

Arguments

Name Type Purpose
seconds int The number of seconds
decimals int How many decimals each time should contain
format string The display format, $H, $M and $S will be replaced with hours, minutes, and seconds

Methods

Jump To top set

set( seconds )

Returns: N/A undefined

Name Type Purpose
seconds int The number of seconds to set the time to

Will format the provided seconds into a formatted time string.


Variables

Jump To top
  • format - the format as provided by the format argument
  • decimals - the decimals as provided by the decimals argument
Clone this wiki locally