ccscript-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccscript-devel] time patch


From: Jonathan Wolfe
Subject: [Ccscript-devel] time patch
Date: Fri, 5 Nov 2004 11:05:54 -0500

I believe I have a patch for the adjtime function in time.cpp that correctly handles wrap around into the past across a day border:

--- time.cpp    2004-11-05 09:33:37.000000000 -0500
+++ time.cpp    2004-11-05 09:34:01.000000000 -0500
@@ -97,13 +97,13 @@
        dh %= 24;

        if(dh < 0)
-               dh = -dh;
+               dh += 24;

        if(dm < 0)
-               dm = -dm;
+               dm += 60;

        if(ds < 0)
-               ds = -ds;
+               ds += 60;

        if(size < 5)
                return;

Also, can I be subscribed to the list?

Thanks,
-Jon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]