예제 #1
0
파일: models.py 프로젝트: pkkup/django-htk
 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
파일: models.py 프로젝트: pkkup/django-htk
 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)