2022-10-21 17:16:00 +02:00
|
|
|
<!-- 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
|
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
Format time to a readable string.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
tFormat(milliseconds: number, milliPrecision?: boolean): string;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| milliseconds | number | Number of millisecond to format. |
|
2022-11-20 18:07:22 +01:00
|
|
|
| milliPrecision | boolean | Format time with subsecond precision. Defaults to false. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
string
|
|
|
|
|
|
|
|
The formatted time.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0 GB
|
|
|
|
|