Class: Date

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

Instance Method Summary collapse

Instance Method Details

#to_orObject



155
156
157
# File 'lib/other.rb', line 155

def to_or
	"date(\'#{self.to_s}\',\'yyyy-MM-dd\')"
end

#to_orientObject



148
149
150
151
152
153
154
# File 'lib/other.rb', line 148

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