Class: Date

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

Instance Method Summary collapse

Instance Method Details

#to_orientObject


111
112
113
114
115
116
117
# File 'lib/other.rb', line 111

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