Comments (4)
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.
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.
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.
Done in #65
from humanizer.
Related Issues (20)
- Titlize removes decimal point HOT 3
- TimeUnit.ToSymbol() don't take culture into account HOT 2
- Request: Collection.Humanize(Culture culture) instead of defaulting
- Missing DateHumanize_Never for Resources.zh-CN.resx
- Humanize size, e.g. 1280x720 => "HD", 850x480 => "SD" HOT 1
- Pascalize a kebab-cased string returns a Kebab-Cased string. HOT 2
- string.Humanize(LetterCasing.Title) Has Different Behavior Than To.TitleCase Extension (Symbols)
- error NU1202: Package Humanizer.Core.ar 2.14.1 is not compatible wit h net7.0 (.NETCoreApp,Version=v7.0). Package Humanizer.Core.ar 2.14.1 does not support any target frameworks. HOT 5
- Humanize Enum key and DescriptionAttribute HOT 1
- ToMetric with decimal places?
- Dehumanize() doesn't get rid of forward slash in input string.
- Add time of day-based greetings
- Is there a way to ignore & symbol HOT 1
- Pluralize with LetterCasing.AllCaps returns plural with lower case "s" HOT 1
- Humanizing dates in time zones other than system and UTC HOT 2
- decimal to percentage string HOT 3
- Localisation "ToWords" pt-PT for European portuguese no longer available HOT 1
- [Bug] `Camelize()` does not respect acronyms
- Is this library still maintained? HOT 29
- How do I specify a culture? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from humanizer.