Skip to content

string_from_time

Hyomoto edited this page Jun 13, 2021 · 2 revisions
Jump To Go Back Arguments

string_from_time( seconds, format )

Returns: string

Throws: InvalidArgumentType

Given a number of seconds, formats the time using the given formatting string. If seconds is not a number, or format is not a string, InvalidArgumentType will be thrown.

string_from_time( 2410623, "$H hours $M.MM minutes" );
Output: 669 hours 37.05 minutes

Arguments

Name Type Purpose
seconds real The number of seconds to convert
format string The format to use
Clone this wiki locally