rdiff-backup-users
[Top][All Lists]
Advanced

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

Re: [rdiff-backup-users] Assertion errors in rdiff-backup 0.13.3


From: Gr We
Subject: Re: [rdiff-backup-users] Assertion errors in rdiff-backup 0.13.3
Date: Sun, 01 Feb 2004 19:47:11 +0000

I am starting to wonder what functions for getting time are used in python? Could someone tell me how to simply write the current time in python in the way that is done in rdiff-backup? The problem could lay in the fact, that FreeBSD likes to have it's system clock set to UTC (and it automaticly calculates the localtime when it is requested), but afaik I set it to GMT+1:00 and turned this conversions off. I hope someone will have an idea.

I runned the shell command date and date -u on both systems (both showing correct info).

And than I figured out how to print current time in python, with:
import time;
t = time.time()
print t
s = time.strftime("%Y-%m-%dT%H:%M:%S", time.localtime(t))
print s
print "if", time.daylight, "then offset=", -1 * time.altzone/60, "and prefix=+"
print "else offset=", -1 * time.timezone/60, "and prefix=-"
print "if offset==0 then Z"

And on localhost (with Python 2.3.3 (#2, Jan 13 2004, 00:47:05)) I get:
1075664619.98
2004-02-01T20:43:39
if 1 then offset= 120 and prefix=+
else offset= 60 and prefix=-
if offset==0 then Z

And on remotehost (with Python 2.3 (#1, Sep 21 2003, 22:48:56)):
1075664641.98
2004-02-01T20:44:01
if 1 then offset= 120 and prefix=+
else offset= 60 and prefix=-
if offset==0 then Z

As I can see both informations are the same (same offset and prefix), but the interesting thing is, that my increments have the character "Z" written. I have no idea why.

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband





reply via email to

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