#!/usr/bin/python import datetime class readHead(): outHead = "" sTime = [] sTitle = "" def __init__(self, sTitle): self.sTitle = sTitle # self.outHead = "" self.stime = [] def __str__(self): return(str(self.genHead())) #TODO: pick css theme and append to output # Start genHead() def genHead(self): # Generate html element getTime = datetime.datetime.now() timeMod = str(getTime.strftime("%A, %B %d, %Y at %X UTC−06:00")) #TODO: I don't want to hard-code this but the %z utc offset isn't printing timeCreate = timeMod headerStr = "\n\n\n\t\n\t" headerStr1 = "\n\t\n\t\n\t\n\n\n\t" outHead = headerStr + str(self.sTitle) + headerStr1 + timeMod + headerStr2 + timeCreate + headerStr3 return(outHead)