Skip to content

incendium.time.get_timestamp

César Román edited this page May 1, 2024 · 2 revisions

Description

Warning

Deprecated since version 2024.5.0.

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

Syntax

incendium.util.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

from __future__ import print_function

import incendium.util

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