|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KRFCDate
public class KRFCDate
The KRFCDate class contains functions related to the parsing of dates.
Constructor Summary | |
---|---|
|
KRFCDate()
|
protected |
KRFCDate(java.lang.Class dummy)
|
Method Summary | |
---|---|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
static int |
localUTCOffset()
Returns the local timezone offset to UTC in minutes |
static int |
parseDate(java.lang.String date)
This function tries to parse a string containing a date/time in any of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822. |
static int |
parseDateISO8601(java.lang.String date)
This function tries to parse a string containing a date/time in any of the formats specified by http://www.w3.org/TR/NOTE-datetime This is a subset of the formats specified in ISO8601. |
static java.lang.String |
rfc2822DateString(int utcTime)
Returns a string representation of the given date and time formated in conformance to RFC2822. |
static java.lang.String |
rfc2822DateString(int utcTime,
int utcOffset)
Returns a string representation of the given date and time formated in conformance to RFC2822. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KRFCDate(java.lang.Class dummy)
public KRFCDate()
Method Detail |
---|
public static int parseDate(java.lang.String date)
date
- the date to parse
public static int parseDateISO8601(java.lang.String date)
date
- the date to parse
public static int localUTCOffset()
public static java.lang.String rfc2822DateString(int utcTime, int utcOffset)
utcTime
- a date and time in UTCutcOffset
- the offset to UTC in minutes
public static java.lang.String rfc2822DateString(int utcTime)
utcTime
- a date and time in UTC
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |