Giter Club home page Giter Club logo

Comments (6)

Swati4star avatar Swati4star commented on July 26, 2024

So, in this issue, we need to use
humanize.naturaltime(currentdate-date)
for all date formats?

Anything else need to be considered in this one?

from todoman.

untitaker avatar untitaker commented on July 26, 2024

@Swati4star It's just an idea, I don't think @hobarrera has decided on details or whether it's a good one in the first place.

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

We probably need:

  • A flag as mentioned above to toggle this.
  • We probably want to override he default formatter.
  • A setting in configuration to make this the default.

We probably want to use the humanize library since all higher level ones just wrap around that one.

from todoman.

Swati4star avatar Swati4star commented on July 26, 2024

Do we need to mention humanize time format as default in config file. Also is there a specific format that humanize use? like

date_format = %Y-%m-%d
time_format = %H:%M

What I am getting from this is..
If humanize flag is set, display date in that format, else what is there in config file. Is it fine?

from todoman.

untitaker avatar untitaker commented on July 26, 2024

@Swati4star Yes, I think this only affects output, in the way you describe. Though I have been wrong about @hobarrera's ideas before :)

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

Do we need to mention humanize time format as default in config file.

No, humanized dates should not be the default.

If humanize flag is set, display date in that format, else what is there in config file. Is it fine?

Yes, and I'd do this subclassing the default formatter, and using that if the flag is set (similar to --porcelain).

This flag does not affect input/parsing.

from todoman.

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.