mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
673 B
673 B
Home > bitburner > NS > tFormat
NS.tFormat() method
Format time to a readable string.
Signature:
tFormat(milliseconds: number, milliPrecision?: boolean): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| milliseconds | number | Number of millisecond to format. |
| milliPrecision | boolean | (Optional) Format time with subsecond precision. Defaults to false. |
Returns:
string
The formatted time.
Remarks
RAM cost: 0 GB