Chapter 4. BaseTimestamp

Table of Contents

systimestamp - Returns a new TimestampTZ object with the current time
assign - Assigns a value to a BaseTimestamp
coerce - Coerces a BaseTimestamp object to another class
+ - Adds to a timestamp
- - Subtracts from a timestamp
<=> - Compares a timestamp
year - Returns the year
mon - Returns the month
month - Returns the month
day - Returns the day
hour - Returns the hours
min - Returns the minutes
sec - Returns the seconds
usec - Returns the microseconds
fsec - Returns the fractional seconds
wday - Returns the day of the week
yday - Returns the day of the year
default_fmt= - Sets the string format
secondprecision= - Sets the number of fractional-second digits
to_a - Returns an Array representation
to_s - Returns a String representation
to_builtin - Returns a String representation

Warning

BaseTimestamp is intended to be an abstract base class. You should not attempt to create objects of this class. Future releases of Ruby9i will enforce this restriction.