Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

formats.py 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # This file is distributed under the same license as the Django package.
  2. #
  3. # The *_FORMAT strings use the Django date format syntax,
  4. # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  5. DATE_FORMAT = r'j\-\a \d\e F Y' # '26-a de julio 1887'
  6. TIME_FORMAT = 'H:i' # '18:59'
  7. DATETIME_FORMAT = r'j\-\a \d\e F Y\, \j\e H:i' # '26-a de julio 1887, je 18:59'
  8. YEAR_MONTH_FORMAT = r'F \d\e Y' # 'julio de 1887'
  9. MONTH_DAY_FORMAT = r'j\-\a \d\e F' # '26-a de julio'
  10. SHORT_DATE_FORMAT = 'Y-m-d' # '1887-07-26'
  11. SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # '1887-07-26 18:59'
  12. FIRST_DAY_OF_WEEK = 1 # Monday (lundo)
  13. # The *_INPUT_FORMATS strings use the Python strftime format syntax,
  14. # see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  15. DATE_INPUT_FORMATS = [
  16. '%Y-%m-%d', # '1887-07-26'
  17. '%y-%m-%d', # '87-07-26'
  18. '%Y %m %d', # '1887 07 26'
  19. '%d-a de %b %Y', # '26-a de jul 1887'
  20. '%d %b %Y', # '26 jul 1887'
  21. '%d-a de %B %Y', # '26-a de julio 1887'
  22. '%d %B %Y', # '26 julio 1887'
  23. '%d %m %Y', # '26 07 1887'
  24. ]
  25. TIME_INPUT_FORMATS = [
  26. '%H:%M:%S', # '18:59:00'
  27. '%H:%M', # '18:59'
  28. ]
  29. DATETIME_INPUT_FORMATS = [
  30. '%Y-%m-%d %H:%M:%S', # '1887-07-26 18:59:00'
  31. '%Y-%m-%d %H:%M', # '1887-07-26 18:59'
  32. '%Y-%m-%d', # '1887-07-26'
  33. '%Y.%m.%d %H:%M:%S', # '1887.07.26 18:59:00'
  34. '%Y.%m.%d %H:%M', # '1887.07.26 18:59'
  35. '%Y.%m.%d', # '1887.07.26'
  36. '%d/%m/%Y %H:%M:%S', # '26/07/1887 18:59:00'
  37. '%d/%m/%Y %H:%M', # '26/07/1887 18:59'
  38. '%d/%m/%Y', # '26/07/1887'
  39. '%y-%m-%d %H:%M:%S', # '87-07-26 18:59:00'
  40. '%y-%m-%d %H:%M', # '87-07-26 18:59'
  41. '%y-%m-%d', # '87-07-26'
  42. ]
  43. DECIMAL_SEPARATOR = ','
  44. THOUSAND_SEPARATOR = '\xa0' # non-breaking space
  45. NUMBER_GROUPING = 3