Пример #1
0
 def next_iso_week_date(self):
     """The first day of the next ISO week
     """
     from htk.utils.datetime_utils import iso_to_gregorian
     iso_year, iso_week, iso_day = self.one_week_later_date.isocalendar()
     return iso_to_gregorian(iso_year, iso_week, 1)
Пример #2
0
 def next_iso_week_date(self):
     """The first day of the next ISO week
     """
     from htk.utils.datetime_utils import iso_to_gregorian
     iso_year, iso_week, iso_day = self.one_week_later_date.isocalendar()
     return iso_to_gregorian(iso_year, iso_week, 1)
Пример #3
0
 def current_iso_week_date(self):
     from htk.utils.datetime_utils import iso_to_gregorian
     iso_year, iso_week, iso_day = self.localized_date.isocalendar()
     return iso_to_gregorian(iso_year, iso_week, 1)
Пример #4
0
 def current_iso_week_date(self):
     from htk.utils.datetime_utils import iso_to_gregorian
     iso_year, iso_week, iso_day = self.localized_date.isocalendar()
     return iso_to_gregorian(iso_year, iso_week, 1)