Skip to content
devmenPublic
forked from grsmv/day

About

Gem for date recognition and parsing in natural language phrases.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

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

About

Gem for date recognition and parsing in natural language phrases.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages