html.xonsh/header.py

30 lines
730 B
Python
Raw Normal View History

#!/usr/bin/python
import bs4
import datetime
2022-03-05 04:41:12 +00:00
class readHead():
inFile = ""
outHead = ""
time = []
sTitle = ""
footStr = "\n</body>\n</html>"
def __init__(self, headerFile, title):
self.inFile = headerFile
self.sTitle = title
self.outHead = ""
self.time = []
self.footStr = "\n</body>\n</html>"
def getTime(self):
gettime = datetime.datetime.now()
modDate = str(gettime.strftime("%A, %B %d, %Y at %X UTC06: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)