[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [tFormat](./bitburner.ns.tformat.md) ## NS.tFormat() method Format time to readable string Signature: ```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. | Returns: string The formatted time. ## Remarks RAM cost: 0 GB