#!/usr/bin/python import bs4 import datetime def readHead(): inFile = "" outHead = "" time = [] sTitle = "" footStr = "\n\n" def __init__(self, headerFile, title): self.inFile = headerFile self.sTitle = title self.outHead = "" self.time = [] self.footStr = "\n\n" def getTime(self): gettime = datetime.datetime.now() modDate = 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 createDate = self.modDate #TODO: make this seperate global time time.append(str(modDate)) time.append(str.createDate)