Skip to content

devmen/day

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%