$formatMS

Formats provided milliseconds into a readable date.

Usage

$formatMS[milliseconds;format]

This function has two params.

Field
Description
Type
Required

milliseconds

The milliseconds to format.

Integer

Yes

format

The format to apply.

String

No

Examples

Example #1

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$formatMS[$getTimestamp]` //Returns the current date. For example, October 25th 2021.
})

Example #2

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$formatMS[$getTimestamp;October 25th 2021, 11:39:50 pm]` //Returns the current date. For example, October 25th 2021, 11:39:50 pm.
})

Example #3

Example #4

Example #5

Example #6

Find more information about formating here.

Last updated

Was this helpful?