def get_date_formats():
 warnings.warn("'django.utils.translation.get_date_formats' is deprecated. Please update your code to use the new i18n aware formatting.", PendingDeprecationWarning)
 from google.appengine._internal.django.conf import settings
 date_format = ugettext('DATE_FORMAT')
 datetime_format = ugettext('DATETIME_FORMAT')
 time_format = ugettext('TIME_FORMAT')
 if (date_format == 'DATE_FORMAT'):
  date_format = settings.DATE_FORMAT
 if (datetime_format == 'DATETIME_FORMAT'):
  datetime_format = settings.DATETIME_FORMAT
 if (time_format == 'TIME_FORMAT'):
  time_format = settings.TIME_FORMAT
 return (date_format, datetime_format, time_format)

def get_date_formats ( ) : warnings . warn ( "'django.utils.translation.get_date_formats' is deprecated. Please update your code to use the new i18n aware formatting." , PendingDeprecationWarning ) from google . appengine . _internal . django . conf import settings date_format = ugettext ( 'DATE_FORMAT' ) datetime_format = ugettext ( 'DATETIME_FORMAT' ) time_format = ugettext ( 'TIME_FORMAT' ) if ( date_format == 'DATE_FORMAT' ) : date_format = settings . DATE_FORMAT if ( datetime_format == 'DATETIME_FORMAT' ) : datetime_format = settings . DATETIME_FORMAT if ( time_format == 'TIME_FORMAT' ) : time_format = settings . TIME_FORMAT return ( date_format , datetime_format , time_format )
checks whether translation files provide a translation for some technical message id to store date and time formats .