formats.py 691 B

1234567891011121314151617181920212223242526
  1. # This file is distributed under the same license as the Django package.
  2. #
  3. DATE_FORMAT = r"j \d\e F \d\e Y"
  4. TIME_FORMAT = "H:i"
  5. DATETIME_FORMAT = r"j \d\e F \d\e Y \a \l\a\s H:i"
  6. YEAR_MONTH_FORMAT = r"F \d\e Y"
  7. MONTH_DAY_FORMAT = r"j \d\e F"
  8. SHORT_DATE_FORMAT = "d/m/Y"
  9. SHORT_DATETIME_FORMAT = "d/m/Y H:i"
  10. FIRST_DAY_OF_WEEK = 1
  11. DATE_INPUT_FORMATS = [
  12. "%d/%m/%Y", # '25/10/2006'
  13. "%d/%m/%y", # '25/10/06'
  14. "%Y%m%d", # '20061025'
  15. ]
  16. DATETIME_INPUT_FORMATS = [
  17. "%d/%m/%Y %H:%M:%S",
  18. "%d/%m/%Y %H:%M:%S.%f",
  19. "%d/%m/%Y %H:%M",
  20. "%d/%m/%y %H:%M:%S",
  21. "%d/%m/%y %H:%M:%S.%f",
  22. "%d/%m/%y %H:%M",
  23. ]
  24. DECIMAL_SEPARATOR = ","
  25. THOUSAND_SEPARATOR = "."
  26. NUMBER_GROUPING = 3