Skip to content

incendium.util.get_timestamp

César Román edited this page Feb 11, 2022 · 9 revisions

Description

Get timestamp in "hh:mm:ss" format.

Syntax

get_timestamp(value)

Args:

  • value (int): Time represented in seconds.

Returns:

  • str: Time elapsed represented by a string in the following format: "hh:mm:ss".

Recommendations

None.

Code Examples

import incendium.util

print incendium.util.get_timestamp(10942)
# This prints "03:02:22"
Clone this wiki locally