1.0.2 • Published 4 years ago

moment-discord v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

moment-discord

A simple yet useful NPM for discord timezones.

Basic usage

const MomentDiscord = require("moment-discord")
const moment = new MomentDiscord(new Date(<Discord.js Client>.readyAt).getTime())

console.log(moment.format("R"))

All usages

/*F: Thursday, February 19, 1970 6:17 PM*/ <moment>.format("F")
/*f: February 19, 1970 6:17 PM*/ <moment>.format("f")
/*R: 52 years ago*/ <moment>.format("R")
/*D: February 19, 1970*/ <moment>.format("D")
/*d: 02/19/1970*/ <moment>.format("d")
/*t: 6:17 PM*/ <moment>.format("t")
/*T: 6:17:34 PM*/ <moment>.format("T")
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago