Class Runt::DIMonth
In: lib/runt/temporalexpression.rb
Parent: TExpr

TExpr that provides support for building a temporal expression using the form:

    DIMonth.new(1,0)

where the first argument is the week of the month and the second argument is the wday of the week as defined by the ‘wday’ method in the standard library class Date.

A negative value for the week of the month argument will count backwards from the end of the month. So, to match the last Saturday of the month

    DIMonth.new(-1,6)

Using constants defined in the base Runt module, you can re-write the first example above as:

    DIMonth.new(First,Sunday)

and the second as:

    DIMonth.new(Last,Saturday)

 See also: Date, Runt

Methods

include?   new   print   to_s  

Public Class methods

Public Instance methods

[Validate]