View Single Post
Old Jan 27th, 2006, 1:27 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,890
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
You could do that easily by yourself...

o_O I'll throw something up, just a moment.

EDIT:

import time

def yday(time_zone):  #HOURS FROM GMT!!
    new  = time.gmtime(time.time()+(time_zone-24)*3600)
    mon  = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
    return "%s %s %s"%(new[2],mon[int(new[1])-1],new[0])

today = time.strftime("%d %B %Y")
yesterday = yday(-5)

print today, yesterday


Then just change -5 to how many hours you are from GMT.
Sane is online now   Reply With Quote