Skip to content

Util.Timestamp

github-actions[bot] edited this page Sep 30, 2024 · 4 revisions

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>


πŸ›ˆ Client

πŸ›ˆ AddonService

πŸ›ˆ AttachmentService

πŸ›ˆ ChannelService

πŸ›ˆ CommandService

πŸ›ˆ ComponentService

πŸ›ˆ ErrorService

πŸ›ˆ EventService

πŸ›ˆ ExpressionService

πŸ›ˆ GuildService

πŸ›ˆ LogService

πŸ›ˆ MessageService

πŸ›ˆ PermissionService

πŸ›ˆ RoleService

πŸ›ˆ StorageService

πŸ›ˆ TypeService

πŸ›ˆ UserService

πŸ›ˆ UtilService

πŸ›ˆ VoiceService


Clone this wiki locally