Class: Time

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



7
8
9
# File 'lib/jactive_support/core_ext/to_java_date.rb', line 7

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

#to_java_sqldateObject



8
9
10
# File 'lib/jactive_support/core_ext/to_java_sqldate.rb', line 8

def to_java_sqldate
  to_java_date.to_java_sqldate
end