Git Product home page Git Product logo

Comments (4)

MehdiK avatar MehdiK commented on May 18, 2024

Hey @robdmoore,

I see your point and while this is more logical, I think the current implementation might be more desired. This is parallel to DateTime.Humanize and the thinking is that a human doesn't quite care about the minutes when we're talking about a couple of days.

I guess what we could do is to provide an overload that will return the detailed value.

/cc @joshka

from humanizer.

robdmoore avatar robdmoore commented on May 18, 2024

Completely agree - I can think of situations where you would want both. I wonder if we can somehow provide the accuracy you are interested in e.g. hours vs mins vs seconds?

from humanizer.

joshka avatar joshka commented on May 18, 2024

No real opinion from me.

As a side note, if accuracy matters (it probably does), there should always
be a secondary piece of information that shows the full timestamp.
An example of where this is not done (and frustrates me several times a
week) is the TFS build results views.
E.g. Build logs say finished x minutes ago, even when I have that build
result open in a tab and it's been there for hours. List of results that
have a bunch of builds where the only info is the date, without a time is
also an annoyance.

I wonder if this guidance would be usefully put somewhere nearby to this in
the documentation of these features.

from humanizer.

MehdiK avatar MehdiK commented on May 18, 2024

Done in #65

from humanizer.

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.