Class: Date

Inherits:
Object show all
Defined in:
lib/jactive_support/core_ext/to_java_date.rb,
lib/jactive_support/core_ext/to_java_sqldate.rb

Instance Method Summary collapse

Instance Method Details

#to_java_dateObject



2
3
4
# File 'lib/jactive_support/core_ext/to_java_date.rb', line 2

def to_java_date
  java::util::Date.new((to_time.tv_sec*1000).to_i)
end

#to_java_sqldateObject



3
4
5
# File 'lib/jactive_support/core_ext/to_java_sqldate.rb', line 3

def to_java_sqldate
  to_java_date.to_java_sqldate
end