Commit e64be072 authored by Shane Hathaway's avatar Shane Hathaway

Day of week now works in formatted date output.

parent dee1779a
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.49 $'[11:-2] __version__='$Revision: 1.50 $'[11:-2]
import sys, os, math, regex, ts_regex, DateTimeZone import sys, os, math, regex, ts_regex, DateTimeZone
...@@ -1342,7 +1342,7 @@ class DateTime: ...@@ -1342,7 +1342,7 @@ class DateTime:
def strftime(self, format): def strftime(self, format):
return strftime(format, (self._year, self._month, self._day, return strftime(format, (self._year, self._month, self._day,
self._hour, self._minute, self._nearsec, self._hour, self._minute, self._nearsec,
0, 0, 0)) (self._dayoffset + 6) % 7, 0, 0))
# General formats from previous DateTime # General formats from previous DateTime
def Date(self): def Date(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment