Class DBI::Time
In: lib/dbi/utils/time.rb
Parent: Object

Represents a Time

DEPRECATED: Please use a regular Time or DateTime object.

Methods

new   to_s   to_time  

External Aliases

minute -> min
minute= -> min=
second -> sec
second= -> sec=

Attributes

hour  [RW] 
minute  [RW] 
second  [RW] 

Public Class methods

DBI::Time.new(hour = 0, minute = 0, second = 0) DBI::Time.new(Time)

Creates and returns a new DBI::Time object. Unlike the Time object in the standard library, accepts an hour, minute and second, or a Time object.

Public Instance methods

Returns a DBI::Time object as a string in HH:MM:SS format.

Returns a new Time object based on the hour, minute and second, using the current year, month and day. If a Time object was passed to the constructor, returns that object instead.

[Validate]