Comments (5)
We use the humanize output and reverse it for dehumanize.
arrow.now().dehumanize("a day ago").isoformat()
will work since that's what humanize produces. Humanize doesn't ever produce the "1 days ago" output, hence we don't have that mapping in there.
We certainly could add this translation in for English, but ideally we would want similar mappings across all languages. I'm open to making this a broader issue and attempting to solve it.
from arrow.
Looking at it, it seems like the dehumanize only supports the plurals.
@anishnya any insight on this one?
from arrow.
Related Issues (20)
- How do I correctly parse abbreviated month names?
- ceil("day") incorrect on the day before DST switch HOT 2
- Humanize more human version HOT 2
- Proposal to change certain Thai translations in Locale HOT 2
- User Documentation Difficult to Read Because of Index HOT 3
- Improving the documentation layout
- incorrect time difference for times before and after DST switch HOT 2
- Add "T" separator to FORMAT_RFC3339 HOT 1
- Pandas Timestamp from Arrow Object
- passing a parameter to Arrow.shift function (to check for imaginary times or not)
- Fuzzing arrow on OSS-Fuzz HOT 1
- Arrow.humanize() thinks past date is in the future HOT 3
- Cannot append nullable string columns to table
- Timezone in multiples of 4. HOT 1
- incorrect tzinfo when arrow.get() HOT 4
- 'arrow' has no attribute 'utcnow' HOT 1
- .humanize() should have a numeric option for 1 instead of a/an HOT 3
- error in Time transform of 9999-12-31 HOT 4
- arrow 1.2.3 doesn't run under Python 3.11 HOT 3
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 arrow.