com.metamatrix.console.util
Class QCDateTime
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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.