A
A
ancalled2012-03-29 20:47:00
JavaScript
ancalled, 2012-03-29 20:47:00

Formatting times like "%n minutes ago"?

What libraries are there for formatting time in jQuery in Russian? EasyDate is wonderful, but I want it in the form of native speech.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
egorinsk, 2012-03-29
@egorinsk

It's faster to write yourself.

B
bukarinov, 2012-03-30
@bukarinov

Have a look at moments.js

A
Anton, 2012-03-29
@sHinE

timeago.yarp.com/+github.com/rmm5t/jquery-timeago/blob/master/locales/jquery.timeago.ru.js see _ _

A
Anatoly, 2012-03-29
@taliban

Don't you know that EasyDate supports locales?

$.easydate.locales.enUS = { 
    "future_format": "%s %t", 
    "past_format": "%t %s", 
    "second": "second", 
    "seconds": "seconds", 
    "minute": "minute", 
    "minutes": "minutes", 
    "hour": "hour", 
    "hours": "hours", 
    "day": "day", 
    "days": "days", 
    "week": "week", 
    "weeks": "weeks", 
    "month": "month", 
    "months": "months", 
    "year": "year", 
    "years": "years", 
    "yesterday": "yesterday", 
    "tomorrow": "tomorrow", 
    "now": "just now", 
    "ago": "ago", 
    "in": "in" 
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question