Moment.jsは優れたJavaScript日付ライブラリです。 カットの下の例。
var now = moment(); moment.lang('ru'); console.log(now.format('dddd, MMMM DD YYYY, h:mm:ss'));
var halloween = moment([2011, 9, 31]);
var now = moment().add('days', 9); moment.lang('ru'); console.log(now.format('dddd, MMMM DD YYYY'));
var now = moment(); moment.lang('ru'); console.log(now.format('LLLL'));
さて、実際のリンク:
オフサイト |
ドキュメンテーション |
githubPS私の意見では、日付を扱うのに最も適切です。 ロシア語の通常のサポートを終了するだけです。