Home > bitburner > Format > time
Format time to a readable string.
Signature:
time(milliseconds: number, milliPrecision?: boolean): string;|
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.
RAM cost: 0 GB