Exemplo n.º 1
0
 def start_datetime_text(self, format_string="SHORT_DATE"):
     """
     Returns the desired text corresponding the course's start date and
     time in UTC.  Prefers .advertised_start, then falls back to .start.
     """
     return course_metadata_utils.course_start_datetime_text(
         self.start, self.advertised_start, format_string, ugettext,
         strftime_localized)
Exemplo n.º 2
0
 def start_datetime_text(self, format_string="SHORT_DATE", time_zone=utc):
     """
     Returns the desired text corresponding to the course's start date and
     time in the specified time zone, or utc if no time zone given.
     Prefers .advertised_start, then falls back to .start.
     """
     return course_metadata_utils.course_start_datetime_text(
         self.start, self.advertised_start, format_string, time_zone,
         ugettext, strftime_localized)
Exemplo n.º 3
0
 def start_datetime_text(self, format_string="SHORT_DATE"):
     """
     Returns the desired text corresponding the course's start date and
     time in UTC.  Prefers .advertised_start, then falls back to .start.
     """
     return course_metadata_utils.course_start_datetime_text(
         self.start,
         self.advertised_start,
         format_string,
         ugettext,
         strftime_localized
     )
Exemplo n.º 4
0
 def start_datetime_text(self, format_string="SHORT_DATE", time_zone=utc):
     """
     Returns the desired text corresponding to the course's start date and
     time in the specified time zone, or utc if no time zone given.
     Prefers .advertised_start, then falls back to .start.
     """
     return course_metadata_utils.course_start_datetime_text(
         self.start,
         self.advertised_start,
         format_string,
         time_zone,
         ugettext,
         strftime_localized
     )