Util.Timestamp - shysolocup/noscord.js GitHub Wiki

creates a new timestamp
type: AeplSubClass

arguments:

  • ?date Date

let timestamp = new Timestamp();


let embed = new client.Embed({
    description: `this was sent ${timestamp.relative} with a latency of ${timestamp.latency(message)}ms`,
    timestamp: timestamp.embed,
    footer: "sent at"
});

NOTE: examples provided by LeviSnoot/discord-timestamps.md

Property

Showcase

Syntax

🛈 date None 2018-11-28T09:01:00.000Z
🛈 now None 1698425091743
🛈 snowflake None 517263631319040000
🛈 embed 3 years ago 2018-11-28T09:01:00.000Z
🛈 default November 28, 2018 9:01 AM <t:1543392060>
🛈 relative 3 years ago <t:1543392060:R>
🛈 shortTime 9:01 AM <t:1543392060:t>
🛈 longTime 9:01:00 AM <t:1543392060:T>
🛈 shortDate 11/28/2018 <t:1543392060:d>
🛈 longDate November 28, 2018 <t:1543392060:D>
🛈 short November 28, 2018 9:01 AM <t:1543392060:f>
🛈 long Wednesday, November 28, 2018 9:01 AM <t:1543392060:F>


⚠️ **GitHub.com Fallback** ⚠️