Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 767 Bytes

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


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'в следующий вторник', start_day).parse