30 lines
730 B
Python
Executable File
30 lines
730 B
Python
Executable File
#!/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 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)
|
||
|