Date <BadgeShared/>
Date is a powerful module to manage dates in your scripts.
JO Functions > jo.date.convertMsToInterval()
<!-- @include: ./slots/headers.md#shared|jo.date.convertMsToInterval -->
A function to convert a time in ms to a readable string <br>
<!-- @include: ./slots/descriptions.md#shared|jo.date.convertMsToInterval -->
JO Functions > jo.date.convertMsToInterval() > Syntax
jo.date.convertMsToInterval(ms, lang)
JO Functions > jo.date.convertMsToInterval() > Parameters
ms : integer
The duration in ms
lang : table <BadgeOptional />
The list of translatable strings <br> Use
falseto disable
lang.ms: string - "ms"
lang.s: string - "s"
lang.h: string - "h"
lang.d: string - "d"
lang.s: string - "s"
<!-- @include: ./slots/examples.md#shared|jo.date.convertMsToInterval -->
<!-- @include: ./slots/footers.md#shared|jo.date.convertMsToInterval -->
JO Functions > jo.date.now()
<!-- @include: ./slots/headers.md#shared|jo.date.now -->
A function to get the current time <br>
<!-- @include: ./slots/descriptions.md#shared|jo.date.now -->
JO Functions > jo.date.now() > Syntax
jo.date.now()
JO Functions > jo.date.now() > Return Value
Type : integer
The current time in ms
<!-- @include: ./slots/examples.md#shared|jo.date.now -->
<!-- @include: ./slots/footers.md#shared|jo.date.now -->