formats.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- encoding: utf-8 -*-
  2. # This file is distributed under the same license as the Django package.
  3. #
  4. from __future__ import unicode_literals
  5. # The *_FORMAT strings use the Django date format syntax,
  6. # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  7. DATE_FORMAT = 'j. E Y'
  8. TIME_FORMAT = 'G.i.s'
  9. DATETIME_FORMAT = r'j. E Y \k\e\l\l\o G.i.s'
  10. YEAR_MONTH_FORMAT = 'F Y'
  11. MONTH_DAY_FORMAT = 'j. F'
  12. SHORT_DATE_FORMAT = 'j.n.Y'
  13. SHORT_DATETIME_FORMAT = 'j.n.Y G.i'
  14. FIRST_DAY_OF_WEEK = 1 # Monday
  15. # The *_INPUT_FORMATS strings use the Python strftime format syntax,
  16. # see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  17. DATE_INPUT_FORMATS = (
  18. '%d.%m.%Y', # '20.3.2014'
  19. '%d.%m.%y', # '20.3.14'
  20. )
  21. DATETIME_INPUT_FORMATS = (
  22. '%d.%m.%Y %H.%M.%S', # '20.3.2014 14.30.59'
  23. '%d.%m.%Y %H.%M.%S.%f', # '20.3.2014 14.30.59.000200'
  24. '%d.%m.%Y %H.%M', # '20.3.2014 14.30'
  25. '%d.%m.%Y', # '20.3.2014'
  26. '%d.%m.%y %H.%M.%S', # '20.3.14 14.30.59'
  27. '%d.%m.%y %H.%M.%S.%f', # '20.3.14 14.30.59.000200'
  28. '%d.%m.%y %H.%M', # '20.3.14 14.30'
  29. '%d.%m.%y', # '20.3.14'
  30. )
  31. TIME_INPUT_FORMATS = (
  32. '%H.%M.%S', # '14.30.59'
  33. '%H.%M.%S.%f', # '14.30.59.000200'
  34. '%H.%M', # '14.30'
  35. )
  36. DECIMAL_SEPARATOR = ','
  37. THOUSAND_SEPARATOR = '\xa0' # Non-breaking space
  38. NUMBER_GROUPING = 3