todoist_date_time

String class extension which parses date and time literals into DateTime instances using same syntax as todoist.com.

Examples:

"today @12".to_tddatetime
=> Mon, 25 Jan 2010 12:00:00 +0000

"april/4 at 9:34".to_tddatetime
=> Sun, 04 Apr 2010 09:34:00 +0000

"monday".to_tddatetime
=> Mon, 25 Jan 2010 00:00:00 +0000

TODO

  • write full documentation of acceptable input syntax and expected results

Copyright © 2009 Kazuhiro Hiramatsu. See LICENSE for details.