$parseDate
$parseDate
$parseDate will return the date/time for the given milliseconds
Usage
$parseDate[ms;type?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
ms | string | Time in ms you want to parse. | true |
type? | string | The type in which the parsed date will be returned in. | false |
Types
Type | Format |
---|---|
time | 1 years, 1 week, 6 days, 8 hours, 16 minutes, 20 seconds |
date | 1/1/2023, 8:16:20 AM |
Example(s)
This will return your current date in the date
format:
1client.command({2 name: "parseDate",3 code: `4 $parseDate[$dateStamp;date]5 `6});