Project

day

0.0
No commit activity in last 3 years
No release in over 3 years
Gem for date parsing (in the scale of the day, hours is not very important in my projects now). It support Russian and Ukrainian (in future) languages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.4.2
 Project Readme

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