Giter Site home page Giter Site logo

Formatting string bug about pendulum HOT 6 CLOSED

sdispater avatar sdispater commented on August 15, 2024
Formatting string bug

from pendulum.

Comments (6)

sdispater avatar sdispater commented on August 15, 2024

What exactly does your format string look like?

from pendulum.

lucasew avatar lucasew commented on August 15, 2024

It doesn't return anything, just a error. Note: I am only tested in the
pt-br locale, utc formattings works normally but on converting into "human
text" it doesn't work

2016-08-19 0:22 GMT-03:00 Sébastien Eustace [email protected]:

What exactly does your format string look like?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO93eHYTKIsRUfTnvRyekBnwqoMuf1U2ks5qhSF_gaJpZM4JoBZ4
.

from pendulum.

sdispater avatar sdispater commented on August 15, 2024

Can you provide a sample of your code?

from pendulum.

lucasew avatar lucasew commented on August 15, 2024

I am new in python and I has make something wrong while I try to generate a
"human time string" in my language like Sexta-Feira 19/08/2016 13:42.
That's a problem while I tryed to format a string, but I probably made
something wrong.
If you know how to make this, please help me if no bother :)

Sébastien Eustace [email protected] escreveu no dia sexta,
19/08/2016 às 10:04:

Can you provide a sample of your code?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO93eJkzilf6W9Qwh02aXc5y5wadxrA9ks5qhamwgaJpZM4JoBZ4
.

from pendulum.

sdispater avatar sdispater commented on August 15, 2024

It would be something like this:

pendulum.now().format('%A %d/%m/%Y %H:%M', locale='pt_br')

To see how to format your instances see http://strftime.org and also https://pendulum.eustace.io/docs/#custom-directives for Pendulum's own additional directives.

from pendulum.

lucasew avatar lucasew commented on August 15, 2024

Thanks :D

Em sex, 19 de ago de 2016 14:51, Sébastien Eustace [email protected]
escreveu:

It would be something like this:

pendulum.now().format('%A %d/%m/%Y %H:%M', locale='pt_br')

To see how to format your instances see http://strftime.org and also
https://pendulum.eustace.io/docs/#custom-directives for Pendulum's own
additional directives.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO93eHM5OFnkl5q5e20fGfG0EMuRrEXaks5qhe0RgaJpZM4JoBZ4
.

from pendulum.

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.