-
Notifications
You must be signed in to change notification settings - Fork 2
StringTime
Hyomoto edited this page Nov 29, 2020
·
12 revisions
| Jump To | Go Back |
Arguments | Methods | Variables |
|---|
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 );| 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 |
| Jump To | top |
set |
|---|
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.
| Jump To | top |
|---|
- format - the format as provided by the format argument
- decimals - the decimals as provided by the decimals argument
Devon Mullane 2020