$parseTime
$parseTime
will convert any human time to milliseconds.
Usage
$parseTime[time]
Parameters
Field | Type | Description | Required |
---|---|---|---|
time | string | The time that will be converted to ms . | true |
Example(s)
This will convert 69 minutes
to milliseconds and return 4140000
:
1client.command({2 name: "parseTime",3 code: `4 $parseTime[69m]5 `6});
This will convert 1w 2d 20m
to milliseconds and return 778800000
:
1client.command({2 name: "parseTime",3 code: `4 $parseTime[1w 2d 20m]5 `6});