Let nextcord.utils.format_dt also take a timestamp instead of only datetime #1085
Labels
p: low
Priority: low - not important to be worked on
t: enhancement
Type: enhancement - new feature or request
Summary
Let the
format_dt
function fromnextcord.utils
also be able to work with unix timestampsWhat is the feature request for?
The core library
The Problem
I have to either manually format them or convert something to a python
datetime
object just for the sake of using theformat_dt
functionThe Ideal Solution
Let
nextcord.utils.format_dt(...)
also take unix timestamps instead of onlydatetime
objects, especially when theformat_dt
function just calls.timestamp()
on the supplieddatetime
object anywaysThe Current Solution
Manually formatting it when not converting it to a
datetime
object just to be able to use this functionAdditional Context
No response
The text was updated successfully, but these errors were encountered: