mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
32 lines
673 B
Markdown
32 lines
673 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [tFormat](./bitburner.ns.tformat.md)
|
|
|
|
## NS.tFormat() method
|
|
|
|
Format time to a readable string.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
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
|
|
|