W
W
wartur2012-07-24 01:24:23
PHP
wartur, 2012-07-24 01:24:23

Where can I find libraries for writing dates in cursive?

Hello gentlemen.
There was a question on the subject, what PHP, JS libraries would you use in order to complete this task, if they exist at all.
The task, for example, from: 2012-07-24 02:08:23
Generate: two hours, eight minutes, twenty-three seconds, July twenty-fourth, two thousand and twelve
Of course, you can vary the format, but the functionality of something like this is needed. You need at least June 12, 2012 (for example, as it is done in DateTime, you just need to Russify).
In addition, we need a library that can write something like this:
this post was written 12 minutes ago , one minute ago . That is, to have the function of declension of words.
PHP or JS execution languages.
PS:
Let everyone who knows say everything they know and put this question in the favorites for the future, yet a common feature in modern interfaces.
ZY2: you don’t need to write ready-made code with a solution method in the answer, the task is not difficult, you just want to find complex libraries and put them together in one topic.
Thank you for your attention

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
Mikhail Osher, 2012-07-24
@wartur

kohanaframework.org/3.0/guide/api/Date#fuzzy_span

A
Arkady, 2012-07-24
@p0is0n

I won’t say anything about PHP, but there is an excellent pytils library in python.

A
Alexey Sundukov, 2012-07-24
@alekciy

>12 minutes ago, one minute ago. That is, to have the function of declension of words.
If there is a number, then the word associated with it can be inflected using a well-known tool like gettext . Specifically - plural forms .

K
Kane, 2012-07-24
@Kane

On js Humanizer

C
creage, 2012-07-24
@creage

globalize for js

W
wartur, 2012-07-24
@wartur

From myself I will add what my comrades got:
timeago.yarp.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question