com.caucho.quercus.lib.date
Class DateTime

java.lang.Object
  extended by com.caucho.quercus.lib.date.DateTime

public class DateTime
extends java.lang.Object

Date functions.


Field Summary
static java.lang.String ATOM
           
static java.lang.String COOKIE
           
static java.lang.String ISO8601
           
static java.lang.String RFC1036
           
static java.lang.String RFC1123
           
static java.lang.String RFC2822
           
static java.lang.String RFC3339
           
static java.lang.String RFC822
           
static java.lang.String RFC850
           
static java.lang.String RSS
           
static java.lang.String W3C
           
 
Constructor Summary
protected DateTime(Env env, java.lang.String timeString)
           
protected DateTime(Env env, java.lang.String timeString, DateTimeZone dateTimeZone)
           
 
Method Summary
static DateTime __construct(Env env, java.lang.String time, DateTimeZone timeZone)
           
 java.lang.String format(java.lang.String format)
           
 long getOffset()
           
protected  QDate getQDate()
           
protected  long getTime()
           
 DateTimeZone getTimeZone()
           
 void modify(java.lang.String modify)
           
 void setDate(int year, int month, int day)
           
 void setISODate(int year, int week, int day)
           
 void setTime(int hour, int minute, int second)
           
protected  void setTime(long time)
           
 void setTimeZone(Env env, DateTimeZone dateTimeZone)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATOM

public static final java.lang.String ATOM
See Also:
Constant Field Values

COOKIE

public static final java.lang.String COOKIE
See Also:
Constant Field Values

ISO8601

public static final java.lang.String ISO8601
See Also:
Constant Field Values

RFC822

public static final java.lang.String RFC822
See Also:
Constant Field Values

RFC850

public static final java.lang.String RFC850
See Also:
Constant Field Values

RFC1036

public static final java.lang.String RFC1036
See Also:
Constant Field Values

RFC1123

public static final java.lang.String RFC1123
See Also:
Constant Field Values

RFC2822

public static final java.lang.String RFC2822
See Also:
Constant Field Values

RFC3339

public static final java.lang.String RFC3339
See Also:
Constant Field Values

RSS

public static final java.lang.String RSS
See Also:
Constant Field Values

W3C

public static final java.lang.String W3C
See Also:
Constant Field Values
Constructor Detail

DateTime

protected DateTime(Env env,
                   java.lang.String timeString)

DateTime

protected DateTime(Env env,
                   java.lang.String timeString,
                   DateTimeZone dateTimeZone)
Method Detail

__construct

public static DateTime __construct(Env env,
                                   java.lang.String time,
                                   DateTimeZone timeZone)

format

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

modify

public void modify(java.lang.String modify)

getTimeZone

public DateTimeZone getTimeZone()

setTimeZone

public void setTimeZone(Env env,
                        DateTimeZone dateTimeZone)

getOffset

public long getOffset()

setTime

public void setTime(int hour,
                    int minute,
                    int second)

setDate

public void setDate(int year,
                    int month,
                    int day)

setISODate

public void setISODate(int year,
                       int week,
                       int day)

getQDate

protected QDate getQDate()

getTime

protected long getTime()

setTime

protected void setTime(long time)

toString

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