convert

Converts a ms time to a string with days, hours, minutes and seconds (calls convertLong)

public convert(number: number, decimals: number = 0): string

  • number: time in ms to convert

  • decimals: number of decimals the seconds will have

const time = client.convert(578474340, 2)
console.log(`Wait ${time} more!`)

Last updated

Was this helpful?