Mercurial > hg > rlgallery-misc
comparison py/rlgalldb.py @ 4:f5a37cc7f41f
Continue removing the time module.
Convert some more struct_time instances to datetime objects.
| author | John "Elwin" Edwards <elwin@sdf.org> | 
|---|---|
| date | Thu, 26 Jul 2012 10:14:56 -0700 | 
| parents | a943cfdfbad9 | 
| children | 7f7b3da664d6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 3:a943cfdfbad9 | 4:f5a37cc7f41f | 
|---|---|
| 1 # rlgalldb.py | 1 # rlgalldb.py | 
| 2 # Module for the Roguelike Gallery, using a postgres database | 2 # Module for the Roguelike Gallery, using a postgres database | 
| 3 | 3 | 
| 4 import os | 4 import os | 
| 5 import time | |
| 6 import calendar | 5 import calendar | 
| 7 import psycopg2 | 6 import psycopg2 | 
| 8 from datetime import datetime, tzinfo, timedelta | 7 from datetime import datetime, tzinfo, timedelta | 
| 9 | 8 | 
| 10 # Configuration | 9 # Configuration | 
