/
docs
/
packages
/
formatters
/
main
/
time%3AFunction
Search...
K
formatters
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Functions
applicationDirectory
blockQuote
bold
channelLink
channelMention
chatInputApplicationCommandMention
codeBlock
escapeBold
escapeBulletedList
escapeCodeBlock
escapeEscape
escapeHeading
escapeInlineCode
escapeItalic
escapeMarkdown
escapeMaskedLink
escapeNumberedList
escapeSpoiler
escapeStrikethrough
escapeUnderline
formatEmoji
heading
hideLinkEmbed
hyperlink
inlineCode
italic
linkedRoleMention
messageLink
orderedList
quote
roleMention
spoiler
strikethrough
subtext
time
underline
underscore
unorderedList
userMention
Enums
Faces
GuildNavigationMentions
HeadingLevel
Interfaces
EscapeMarkdownOptions
FormatEmojiOptions
Types
RecursiveArray
TimestampStylesString
Variables
TimestampStyles
version
Overload 1
of 4
Overload 1
Overload 2
Overload 3
Overload 4
time
export declare function
time
(
date
?:
Date
)
:
`<t:${
bigint
}>`
;
export declare function
time
(date
?:
Date
)
:
`<t:
${
bigint
}
>`
;
Summary
Formats a date into a short date-time string.
Parameters
Name
Type
Optional
Description
date
Date
Yes
The date to format. Defaults to the current time