Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/other.rb

Instance Method Summary collapse

Instance Method Details

#from_orientObject



186
187
188
# File 'lib/other.rb', line 186

def from_orient
  self
end

#to_orientObject



179
180
181
182
183
184
185
# File 'lib/other.rb', line 179

def to_orient
  if RUBY_PLATFORM == 'java'
    java.util.Date.new( year-1900, month-1, day , 0, 0 , 0 )  ## Jahr 0 => 1900
  else
    self
  end
end