Skip to main content

ms

Converts Human readable time to milliseconds

Program

const simplydjs = require("simply-djs");
simplydjs.ms('human readable time')
INFO

This can be implemented anywhere. Even outside of discord.js ;)

Arguments:

simplydjs.ms(
str: string,
)
  • str: string

Returns:

  • <string>
// Human readable time: 0.5d 2h 3m 5s
50585000