I'm quite disturbed that my ESVA gateway let a python script through...

Yes, OT, but interesting (to me) nevertheless.

J

Simon Wood wrote:
> Hi all,
> On one of my trips to VFX Graham queried whether the new daylight savings 
> shift is already accounted for.... well Novell Open Audio guys thought the 
> problem big enough to put out a special show on the issue.
> 
> http://www.novell.com/feeds/openaudio/?p=131
> 
> [makes you wonder why Groupware doesn't use time/locale combination rather 
> than UTC as a reference point - afterall computers do travel across 
> timezones, some appointments are localtime and some are referenced to other 
> timezones]
> 
> 
> Anyhow got me thinking about it and here's a little python script intended to 
> check whether daylight savings starts on the new date of March 11, 2007 or 
> not....
> 
> Cheers,
> Simon.
> 
> PS. Be nice, it's my first python script :-)
> 
> PPS. Dapper LTS seems to be OK.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> #!/bin/python
> from time import strftime, localtime, mktime
> 
> # float time_check=0
> print "Checking March 10/11 transistion, 2007"
> time_check=mktime((2007, 3, 10, 12, 0, 0, 4, 68, -1))
> 
> # add exactly 1 day worth of seconds and see whether we get 'hour' shift.
> if (strftime("%H",localtime(time_check + (3600 * 24))) == "12"):
>       print "Daylight Savings not changing - Damn you George W.!"
> else:
>       print "Daylight Savings changing - OK."
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

-- 
Key fingerprint: BDE0 DE52 B8C0 0CDF 7653 E5A2 D861 7877 0D3B 813E
http://www.jonwatson.ca
+1.403.770.2837

"Trying to learn to hack on a DOS or Windows machine or under MacOS is
like trying to learn to dance while wearing a body cast" - ESR

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to