com.metamatrix.console.util
Class QCDateTime

java.lang.Object
  extended by com.metamatrix.console.util.QCDateTime
All Implemented Interfaces:
java.io.Serializable

public class QCDateTime
extends java.lang.Object
implements java.io.Serializable

Class representing a date and time. Developed for charting but useful here.

See Also:
Serialized Form

Constructor Summary
QCDateTime(java.util.Date dt, boolean ignoreTime)
           
QCDateTime(java.util.Date dt, boolean ignoreTime, boolean ignoreSeconds)
           
QCDateTime(java.util.GregorianCalendar dt, boolean ignoreTime)
           
QCDateTime(QCDate aDate)
           
QCDateTime(QCDate aDate, QCTime aTime)
           
QCDateTime(QCTime aTime)
           
 
Method Summary
 QCDateTime addSeconds(int numSeconds)
           
 QCDateTime adjustForEndOfSpan()
           
 QCDateTime adjustForStartOfSpan()
           
static QCDateTime dateTimeOfInterval(QCDateTime startingDT, int blockInt, int intervalNum)
           
 boolean equals(QCDateTime anotherDateTime)
           
 QCDate getDate()
           
 QCTime getTime()
           
static int intervalNumber(QCDateTime startingDT, QCDateTime curDT, int blockInt)
           
 boolean isGreaterThan(QCDateTime anotherDateTime)
           
 boolean isLessThan(QCDateTime anotherDateTime)
           
static int minutesNumber(QCDateTime aDateTime)
           
static int roundedMinutesNumber(QCDateTime aDateTime)
           
static int secondsNumber(QCDateTime aDateTime)
           
 java.util.GregorianCalendar setGregorian()
           
 java.util.GregorianCalendar toGregorian()
           
 java.lang.String toMonthDayYearHourMinuteString()
           
 java.lang.String toString()
           
 java.sql.Timestamp toTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QCDateTime

public QCDateTime(QCDate aDate,
                  QCTime aTime)

QCDateTime

public QCDateTime(java.util.GregorianCalendar dt,
                  boolean ignoreTime)

QCDateTime

public QCDateTime(QCDate aDate)

QCDateTime

public QCDateTime(QCTime aTime)

QCDateTime

public QCDateTime(java.util.Date dt,
                  boolean ignoreTime)

QCDateTime

public QCDateTime(java.util.Date dt,
                  boolean ignoreTime,
                  boolean ignoreSeconds)
Method Detail

getDate

public QCDate getDate()

getTime

public QCTime getTime()

equals

public boolean equals(QCDateTime anotherDateTime)

isGreaterThan

public boolean isGreaterThan(QCDateTime anotherDateTime)

isLessThan

public boolean isLessThan(QCDateTime anotherDateTime)

intervalNumber

public static int intervalNumber(QCDateTime startingDT,
                                 QCDateTime curDT,
                                 int blockInt)

addSeconds

public QCDateTime addSeconds(int numSeconds)

toGregorian

public java.util.GregorianCalendar toGregorian()

setGregorian

public java.util.GregorianCalendar setGregorian()

toTimestamp

public java.sql.Timestamp toTimestamp()

adjustForStartOfSpan

public QCDateTime adjustForStartOfSpan()

adjustForEndOfSpan

public QCDateTime adjustForEndOfSpan()

dateTimeOfInterval

public static QCDateTime dateTimeOfInterval(QCDateTime startingDT,
                                            int blockInt,
                                            int intervalNum)

minutesNumber

public static int minutesNumber(QCDateTime aDateTime)

roundedMinutesNumber

public static int roundedMinutesNumber(QCDateTime aDateTime)

secondsNumber

public static int secondsNumber(QCDateTime aDateTime)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMonthDayYearHourMinuteString

public java.lang.String toMonthDayYearHourMinuteString()


Copyright © 2009. All Rights Reserved.