Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/StatsCollect/Backends/MySQL.rb
Instance Method Summary collapse
-
#to_MySQLTime ⇒ Object
Convert this date time to a MySQL time.
Instance Method Details
#to_MySQLTime ⇒ Object
Convert this date time to a MySQL time
11 12 13 14 15 16 17 18 19 |
# File 'lib/StatsCollect/Backends/MySQL.rb', line 11 def to_MySQLTime return Mysql::Time.new( self.year, self.month, self.day, self.hour, self.min, self.sec) end |