mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
fix tFormat.rst filename capitalization
This commit is contained in:
18
doc/source/netscript/basicfunctions/tFormat.rst
Normal file
18
doc/source/netscript/basicfunctions/tFormat.rst
Normal file
@@ -0,0 +1,18 @@
|
||||
tFormat() Netscript Function
|
||||
==============================
|
||||
|
||||
.. js:function:: tFormat(milliseconds[, milliPrecision])
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param string milliseconds: Number of millisecond to format.
|
||||
:param boolean milliPrecision: Format time with subsecond precision. Defaults to false.
|
||||
|
||||
Format time to a readable string.
|
||||
|
||||
Examples:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
ns.print(ns.tFormat(123456789)) //logs "1 day 10 hours 17 minutes 36 seconds"
|
||||
ns.print(ns.tFormat(123456789,true)) //logs "1 day 10 hours 17 minutes 36.789 seconds"
|
||||
Reference in New Issue
Block a user