/
docs
/
packages
/
formatters
/
0.1.0
/
time%3AFunction
Search...
K
formatters
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
0.1.0
main
0.6.0
0.5.0
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
Functions
blockQuote
bold
channelLink
channelMention
chatInputApplicationCommandMention
codeBlock
formatEmoji
hideLinkEmbed
hyperlink
inlineCode
italic
messageLink
quote
roleMention
spoiler
strikethrough
time
underscore
userMention
Enums
Faces
Types
TimestampStylesString
Variables
TimestampStyles
time
declare function
time
(
date
?:
Date
)
:
`<t:${
bigint
}>`
;
declare function
time
(date
?:
Date
)
:
`<t:
${
bigint
}
>`
;
Summary
Formats a date into a short date-time string
Overload 1
of 4
Overload 1
Overload 2
Overload 3
Overload 4
Parameters
Name
Type
Optional
Description
date
Date
Yes
The date to format, defaults to the current time