Class: Date

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

Instance Method Summary collapse

Instance Method Details

#from_orientObject



150
151
152
# File 'lib/other.rb', line 150

def from_orient
  self
end

#to_orientObject



143
144
145
146
147
148
149
# File 'lib/other.rb', line 143

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