com.steema.teechart
Class DateTime

java.lang.Object
  extended by java.util.Calendar
      extended by java.util.GregorianCalendar
          extended by com.steema.teechart.DateTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Calendar>

public final class DateTime
extends java.util.GregorianCalendar

Title: DateTime class

Description:

Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

Based on millisecond atomic level

See Also:
Serialized Form

Field Summary
static long MINVALUE
           
 
Fields inherited from class java.util.GregorianCalendar
AD, BC
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
 
Constructor Summary
DateTime(double value)
           
DateTime(int year, int month, int day)
           
DateTime(long value)
           
 
Method Summary
 DateTime addMonths(int amount)
           
 int getDay()
           
 int getDayOfWeek()
           
static int getDaysInMonth(int year, int month)
           
 int getHour()
           
 int getMillisecond()
           
 int getMinute()
           
static DateTime getMinValue()
           
 int getMonth()
           
static DateTime getNow()
           
 int getSecond()
           
static DateTime getToday()
           
 int getYear()
           
 double toDouble()
           
 java.lang.String toShortDateString()
           
 java.lang.String toShortTimeString()
           
 java.lang.String toString()
           
 java.lang.String toString(java.text.DateFormat format)
           
 java.lang.String toString(java.lang.String format)
           
 
Methods inherited from class java.util.GregorianCalendar
add, clone, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, hashCode, isLeapYear, roll, roll, setGregorianChange, setTimeZone
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, compareTo, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINVALUE

public static final long MINVALUE
See Also:
Constant Field Values
Constructor Detail

DateTime

public DateTime(double value)

DateTime

public DateTime(long value)

DateTime

public DateTime(int year,
                int month,
                int day)
Method Detail

getYear

public int getYear()

getMonth

public int getMonth()

getDay

public int getDay()

getDayOfWeek

public int getDayOfWeek()

getHour

public int getHour()

getMinute

public int getMinute()

getSecond

public int getSecond()

getMillisecond

public int getMillisecond()

getNow

public static DateTime getNow()

toShortTimeString

public java.lang.String toShortTimeString()

toShortDateString

public java.lang.String toShortDateString()

getMinValue

public static DateTime getMinValue()

toString

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

toString

public java.lang.String toString(java.text.DateFormat format)

toString

public java.lang.String toString(java.lang.String format)

getToday

public static DateTime getToday()

toDouble

public double toDouble()

getDaysInMonth

public static int getDaysInMonth(int year,
                                 int month)

addMonths

public DateTime addMonths(int amount)