mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
work on making the netscript api tighter
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<!-- 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 readable string
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
tFormat(milliseconds: number, milliPrecision?: boolean): string;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| milliseconds | number | Number of millisecond to format. |
|
||||
| milliPrecision | boolean | Format time with subsecond precision, defaults to false. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
string
|
||||
|
||||
The formatted time.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
Reference in New Issue
Block a user