2022-03-02 05:32:31 +00:00
|
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
2022-03-05 04:35:57 +00:00
|
|
|
|
import bs4
|
|
|
|
|
import datetime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def 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 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)
|
|
|
|
|
|