Module: When::Coordinates::Temporal::OriginOnly

Defined in:
lib/when_exe/coordinates.rb

Instance Method Summary collapse

Instance Method Details

#_decode_upper_structure(source) ⇒ Array<Numeric>

上の位の除去


2000
2001
2002
2003
2004
# File 'lib/when_exe/coordinates.rb', line 2000

def _decode_upper_structure(source)
  date     = source.dup
  date[0] -= @origin_of_MSC
  return date
end

#_encode_upper_structure(source) ⇒ Array<Numeric>

上の位の付加


1988
1989
1990
1991
1992
# File 'lib/when_exe/coordinates.rb', line 1988

def _encode_upper_structure(source)
  date     = source.dup
  date[0] += @origin_of_MSC
  return date
end