diff options
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KRFCDate.java')
-rw-r--r-- | tdejava/koala/org/trinitydesktop/koala/KRFCDate.java | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KRFCDate.java b/tdejava/koala/org/trinitydesktop/koala/KRFCDate.java new file mode 100644 index 00000000..604e500e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KRFCDate.java @@ -0,0 +1,85 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; + +/** + + The KRFCDate class contains functions related to the parsing of dates. + @author Waldo Bastian <bastian@kde.org> + + @short The KRFCDate class contains functions related to the parsing of dates. + +*/ +public class KRFCDate implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KRFCDate(Class dummy){} + + public KRFCDate() { + newKRFCDate(); + } + private native void newKRFCDate(); + /** + This function tries to parse a string containing a date/time in any + of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822. + If the date/time could not be parsed, 0 is returned. If the + parsed date is epoch, then epoch+1 is returned so that a valid + date will not be confused with an improper date string. + The date/time returned is converted to UTC. + @param date the date to parse + @return the date, or 0 if not possible + + @short This function tries to parse a string containing a date/time in any of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822. + */ + public static native int parseDate(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. + If the date/time could not be parsed, 0 is returned. If the + parsed date is epoch, then epoch+1 is returned so that a valid + date will not be confused with an improper date string. + The date/time returned is converted to UTC. + @param date the date to parse + @return the date, or 0 if not possible + + @short This function tries to parse a string containing a date/time in any of the formats specified by http://www. + */ + public static native int parseDateISO8601(String date); + /** + Returns the local timezone offset to UTC in minutes + @return the local timezone offset in minutes + + @short Returns the local timezone offset to UTC in minutes + */ + public static native int localUTCOffset(); + /** + Returns a string representation of the given date and time formated + in conformance to RFC2822. + @param utcTime a date and time in UTC + @param utcOffset the offset to UTC in minutes + @return the string representation of the date + + @short Returns a string representation of the given date and time formated in conformance to RFC2822. + */ + public static native String rfc2822DateString(int utcTime, int utcOffset); + /** + Returns a string representation of the given date and time formated + in conformance to RFC2822. + Provided for convenience, the function is equivalent to + rfc2822DateString(t, localUTCOffset()). + @param utcTime a date and time in UTC + @return the string representation of the date + + @short Returns a string representation of the given date and time formated in conformance to RFC2822. + */ + public static native String rfc2822DateString(int utcTime); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |