<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>81869</integer>
    </number>
    <user>
      <string>clsn</string>
    </user>
    <title>
      <string>clock diff</string>
    </title>
    <contents>
      <string>*** sbpclock.py 2009-06-07 05:08:08.000000000 -0400
--- clock.py    2009-06-15 00:13:06.000000000 -0400
***************
*** 1,13 ****
  #!/usr/bin/env python
  &quot;&quot;&quot;
  clock.py - Phenny Clock Module
! Copyright 2008-9, Sean B. Palmer, inamidst.com
  Licensed under the Eiffel Forum License 2.
  
  http://inamidst.com/phenny/
  &quot;&quot;&quot;
  
  import math, time, urllib
  from tools import deprecated
  
  TimeZones = {'KST': 9, 'CADT': 10.5, 'EETDST': 3, 'MESZ': 2, 'WADT': 9, 
--- 1,14 ----
  #!/usr/bin/env python
  &quot;&quot;&quot;
  clock.py - Phenny Clock Module
! Copyright 2008, Sean B. Palmer, inamidst.com
  Licensed under the Eiffel Forum License 2.
  
  http://inamidst.com/phenny/
  &quot;&quot;&quot;
  
  import math, time, urllib
+ import re as REE
  from tools import deprecated
  
  TimeZones = {'KST': 9, 'CADT': 10.5, 'EETDST': 3, 'MESZ': 2, 'WADT': 9, 
***************
*** 211,216 ****
--- 212,222 ----
     if (TZ == 'UTC') or (TZ == 'Z'): 
        msg = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())
        self.msg(origin.sender, msg)
+    elif REE.match(r&quot;\([a-z]+_[A-Z]+\)$&quot;,tz):
+       import locale
+       locale.setlocale(locale.LC_TIME, (tz[1:-1], &quot;UTF-8&quot;))
+       msg=time.strftime(&quot;%A, %d %B %Y %H:%M:%SZ&quot;, time.gmtime())
+       self.msg(origin.sender, msg)
     elif TimeZones.has_key(TZ): 
        offset = TimeZones[TZ] * 3600
        timenow = time.gmtime(time.time() + offset)
</string>
    </contents>
    <universal-time>
      <integer>3454060555</integer>
    </universal-time>
    <channel>
      <string>#swhack</string>
    </channel>
    <colorization-mode>
      <string>Unified Context Diff</string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
