lib/texp/base.rb
# Create a new temporal expression with a new anchor date.
Create a new temporal expression with a new anchor date.
Create a new temporal expression with a new anchor date .
def reanchor(date)
      new_terms = @terms.collect { |term| term.reanchor(date) }
      if new_terms == @terms
        self
      else
        self.class.new(*new_terms)
      end
    end
def reanchor ( date ) new_terms = @terms . collect { | term | term . reanchor ( date ) } if new_terms == @terms self else self . class . new ( * new_terms ) end end
Create a new temporal expression with a new anchor date.
Create a new temporal expression with a new anchor date .
date
<not_specific>