|
|
|
User Rating: Rated by: |
Fair (2.8/5) 8 user(s) |
|
|
|
TExp description |
|
|
TExp - Temporal expression library for Ruby with a modular, extensible expression serialization language TExp is a temporal expression library for Ruby with a modular, extensible expression serialization language.
Temporal expressions are a way of concisely expressing recuring events. For example, Christmas falls on the 25th of December every year. A temporal expression that represented the recurring event called "Christmas" would return true for any date that falls on the 25th of December.
Here are some key features of "TExp":
· Basic Expressions for: Day of Week (see DayOfWeek), Week of Month (See Week), Specific Month (See Month), Day of Month (see DayOfMonth), Specific Year (See Year) ■ Composite Expressions for: Logical AND (date must be included by all sub-expressions), Logical OR (date is included by any sub-expression), Logical NOT (include any date not included in the sub-expression), Windows (specify a windows of days around any date matching the sub-expression) ■ Human readable descriptions via inspect ■ Compact, parsable encoding via to_s ■ User expandable with custom temporal expression types, that interoperates with the compact, parsable encoding.
|
|