Giter Site home page Giter Site logo

Comments (4)

teaishealthy avatar teaishealthy commented on June 20, 2024 1

This should be it's own function which format_dt can then use. Something like format_ts or format_timestamp

from nextcord.

ooliver1 avatar ooliver1 commented on June 20, 2024 1

format_dt already exists, and could use the new function. The new function would also be available to use for ints. I can't think of a situation where you would have a variable that's either a datetime or int which requires a function that takes multiple types.

from nextcord.

spifory avatar spifory commented on June 20, 2024

The idea's cool, but wouldn't that be inconsistent with the name of the function? Since it's format_dt (format datetime)

from nextcord.

H4ckerxx44 avatar H4ckerxx44 commented on June 20, 2024

Or, perhaps, create something like to_discord_timestamp(a, b) whereas b is a format specifier and a is either a datetime or int?

from nextcord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.