DateTime

Class that stores a date and time. Derives from spug.util.Date.Date and supports all of its functionality.

Base Classes

Methods

__cmp__(self, other)

   def __cmp__(self, other):

Overrides the date comparison operator to allow us to compare time.

__init__(self, timeval, other, year, month, day, hour, minute, second, foreverPast, foreverFuture)

   def __init__(self, timeval = 0, other = None, year = 0, month = 0, day = 0,
                hour = 0, minute = 0, second = 0, foreverPast = 0,
                foreverFuture = 0
                ):

Note that all of Dates construction forms are supported except for stdfmt.

__str__(self)

   def __str__(self):

_toTime(self)

   def _toTime(self):

Overrides spug.util.Date.Date._toTime() to include hour, minute and second.

getHour(self)

   def getHour(self):

Returns the hour of the day (0-23)

getMinute(self)

   def getMinute(self):

Returns the minute of the hour (0-59)

getSecond(self)

   def getSecond(self):

Returns the second