html.xonsh/header.py

30 lines
730 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/python
import bs4
import datetime
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)