[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    KRFCDate doc fix
From:       Stanislav Visnovsky <visnovsky () nenya ! ms ! mff ! cuni ! cz>
Date:       2002-01-31 9:46:26
[Download RAW message or body]

Hi!

The documentation of rfc2822DateString() and localUTCOffset() in KRFCDate
is a mistake (according to the implementation):

localUTCOffset() returns number of minutes (not seconds)
rfc2822DateString() takes as a second argument number of minutes (not
seconds)

Attached patch fixes documentation of those functions.

Best regards

Stanislav

-----------------------------------------------------------
Stanislav Visnovsky
Faculty of Mathematics and Physics
Charles University, Prague


["krfcdate.patch" (TEXT/PLAIN)]

? krfcdate.patch
Index: krfcdate.h
===================================================================
RCS file: /home/kde/kdelibs/kdecore/krfcdate.h,v
retrieving revision 1.5
diff -u -3 -p -r1.5 krfcdate.h
--- krfcdate.h	2002/01/20 01:28:40	1.5
+++ krfcdate.h	2002/01/31 09:42:16
@@ -60,7 +60,7 @@ public:
    static time_t parseDateISO8601(const QString &date);
 
   /**
-   * Returns the local timezone offset to UTC in seconds
+   * Returns the local timezone offset to UTC in minutes
    *
    */
    static int localUTCOffset();
@@ -71,7 +71,7 @@ public:
    * in conformance to RFC2822.
    *
    * @param utcTime    a date and time in UTC
-   * @param utcOffset  the offset to UTC in seconds
+   * @param utcOffset  the offset to UTC in minutes
    *
    */
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic