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 4.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 = 'j F Y' # '20 januari 2009'
  6. TIME_FORMAT = 'H:i' # '15:23'
  7. DATETIME_FORMAT = 'j F Y H:i' # '20 januari 2009 15:23'
  8. YEAR_MONTH_FORMAT = 'F Y' # 'januari 2009'
  9. MONTH_DAY_FORMAT = 'j F' # '20 januari'
  10. SHORT_DATE_FORMAT = 'j-n-Y' # '20-1-2009'
  11. SHORT_DATETIME_FORMAT = 'j-n-Y H:i' # '20-1-2009 15:23'
  12. FIRST_DAY_OF_WEEK = 1 # Monday (in Dutch 'maandag')
  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. '%d-%m-%Y', '%d-%m-%y', # '20-01-2009', '20-01-09'
  17. '%d/%m/%Y', '%d/%m/%y', # '20/01/2009', '20/01/09'
  18. # '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
  19. # '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 09'
  20. ]
  21. # Kept ISO formats as one is in first position
  22. TIME_INPUT_FORMATS = [
  23. '%H:%M:%S', # '15:23:35'
  24. '%H:%M:%S.%f', # '15:23:35.000200'
  25. '%H.%M:%S', # '15.23:35'
  26. '%H.%M:%S.%f', # '15.23:35.000200'
  27. '%H.%M', # '15.23'
  28. '%H:%M', # '15:23'
  29. ]
  30. DATETIME_INPUT_FORMATS = [
  31. # With time in %H:%M:%S :
  32. '%d-%m-%Y %H:%M:%S', '%d-%m-%y %H:%M:%S', '%Y-%m-%d %H:%M:%S',
  33. # '20-01-2009 15:23:35', '20-01-09 15:23:35', '2009-01-20 15:23:35'
  34. '%d/%m/%Y %H:%M:%S', '%d/%m/%y %H:%M:%S', '%Y/%m/%d %H:%M:%S',
  35. # '20/01/2009 15:23:35', '20/01/09 15:23:35', '2009/01/20 15:23:35'
  36. # '%d %b %Y %H:%M:%S', '%d %b %y %H:%M:%S', # '20 jan 2009 15:23:35', '20 jan 09 15:23:35'
  37. # '%d %B %Y %H:%M:%S', '%d %B %y %H:%M:%S', # '20 januari 2009 15:23:35', '20 januari 2009 15:23:35'
  38. # With time in %H:%M:%S.%f :
  39. '%d-%m-%Y %H:%M:%S.%f', '%d-%m-%y %H:%M:%S.%f', '%Y-%m-%d %H:%M:%S.%f',
  40. # '20-01-2009 15:23:35.000200', '20-01-09 15:23:35.000200', '2009-01-20 15:23:35.000200'
  41. '%d/%m/%Y %H:%M:%S.%f', '%d/%m/%y %H:%M:%S.%f', '%Y/%m/%d %H:%M:%S.%f',
  42. # '20/01/2009 15:23:35.000200', '20/01/09 15:23:35.000200', '2009/01/20 15:23:35.000200'
  43. # With time in %H.%M:%S :
  44. '%d-%m-%Y %H.%M:%S', '%d-%m-%y %H.%M:%S', # '20-01-2009 15.23:35', '20-01-09 15.23:35'
  45. '%d/%m/%Y %H.%M:%S', '%d/%m/%y %H.%M:%S', # '20/01/2009 15.23:35', '20/01/09 15.23:35'
  46. # '%d %b %Y %H.%M:%S', '%d %b %y %H.%M:%S', # '20 jan 2009 15.23:35', '20 jan 09 15.23:35'
  47. # '%d %B %Y %H.%M:%S', '%d %B %y %H.%M:%S', # '20 januari 2009 15.23:35', '20 januari 2009 15.23:35'
  48. # With time in %H.%M:%S.%f :
  49. '%d-%m-%Y %H.%M:%S.%f', '%d-%m-%y %H.%M:%S.%f', # '20-01-2009 15.23:35.000200', '20-01-09 15.23:35.000200'
  50. '%d/%m/%Y %H.%M:%S.%f', '%d/%m/%y %H.%M:%S.%f', # '20/01/2009 15.23:35.000200', '20/01/09 15.23:35.000200'
  51. # With time in %H:%M :
  52. '%d-%m-%Y %H:%M', '%d-%m-%y %H:%M', '%Y-%m-%d %H:%M', # '20-01-2009 15:23', '20-01-09 15:23', '2009-01-20 15:23'
  53. '%d/%m/%Y %H:%M', '%d/%m/%y %H:%M', '%Y/%m/%d %H:%M', # '20/01/2009 15:23', '20/01/09 15:23', '2009/01/20 15:23'
  54. # '%d %b %Y %H:%M', '%d %b %y %H:%M', # '20 jan 2009 15:23', '20 jan 09 15:23'
  55. # '%d %B %Y %H:%M', '%d %B %y %H:%M', # '20 januari 2009 15:23', '20 januari 2009 15:23'
  56. # With time in %H.%M :
  57. '%d-%m-%Y %H.%M', '%d-%m-%y %H.%M', # '20-01-2009 15.23', '20-01-09 15.23'
  58. '%d/%m/%Y %H.%M', '%d/%m/%y %H.%M', # '20/01/2009 15.23', '20/01/09 15.23'
  59. # '%d %b %Y %H.%M', '%d %b %y %H.%M', # '20 jan 2009 15.23', '20 jan 09 15.23'
  60. # '%d %B %Y %H.%M', '%d %B %y %H.%M', # '20 januari 2009 15.23', '20 januari 2009 15.23'
  61. # Without time :
  62. '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
  63. '%d/%m/%Y', '%d/%m/%y', '%Y/%m/%d', # '20/01/2009', '20/01/09', '2009/01/20'
  64. # '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
  65. # '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 2009'
  66. ]
  67. DECIMAL_SEPARATOR = ','
  68. THOUSAND_SEPARATOR = '.'
  69. NUMBER_GROUPING = 3