Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Gem for date recognition and parsing in natural language phrases.
Ruby Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
data/ru
lib
test
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
TODO
day.gemspec

README.md

Build Status

Gem for date recognition and parsing in natural language phrases. It supports Russian language. Ukrainian langiage support is a main goal.

Table of possible phrases to recognize

USAGE:

puts Day::Ru 'через 2 месяца'  #=> Wed Sep 14 00:00:00 +0300 2011
puts Day::Ru 'завтра'          #=> Wed Jul 15 00:00:00 +0300 2011

# also you can define date to start counting from:
start_day = Time.mktime(2015, 8, 30)
puts Day::Ru.new('в следующий вторник', start_day).parse
Something went wrong with that request. Please try again.