Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/django/conf/locale/en/formats.py: 100%
14 statements
« prev ^ index » next coverage.py v7.0.5, created at 2023-01-17 06:13 +0000
« prev ^ index » next coverage.py v7.0.5, created at 2023-01-17 06:13 +0000
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 https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
6# Formatting for date objects.
7DATE_FORMAT = "N j, Y"
8# Formatting for time objects.
9TIME_FORMAT = "P"
10# Formatting for datetime objects.
11DATETIME_FORMAT = "N j, Y, P"
12# Formatting for date objects when only the year and month are relevant.
13YEAR_MONTH_FORMAT = "F Y"
14# Formatting for date objects when only the month and day are relevant.
15MONTH_DAY_FORMAT = "F j"
16# Short formatting for date objects.
17SHORT_DATE_FORMAT = "m/d/Y"
18# Short formatting for datetime objects.
19SHORT_DATETIME_FORMAT = "m/d/Y P"
20# First day of week, to be used on calendars.
21# 0 means Sunday, 1 means Monday...
22FIRST_DAY_OF_WEEK = 0
24# Formats to be used when parsing dates from input boxes, in order.
25# The *_INPUT_FORMATS strings use the Python strftime format syntax,
26# see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
27# Note that these format strings are different from the ones to display dates.
28# Kept ISO formats as they are in first position
29DATE_INPUT_FORMATS = [
30 "%Y-%m-%d", # '2006-10-25'
31 "%m/%d/%Y", # '10/25/2006'
32 "%m/%d/%y", # '10/25/06'
33 "%b %d %Y", # 'Oct 25 2006'
34 "%b %d, %Y", # 'Oct 25, 2006'
35 "%d %b %Y", # '25 Oct 2006'
36 "%d %b, %Y", # '25 Oct, 2006'
37 "%B %d %Y", # 'October 25 2006'
38 "%B %d, %Y", # 'October 25, 2006'
39 "%d %B %Y", # '25 October 2006'
40 "%d %B, %Y", # '25 October, 2006'
41]
42DATETIME_INPUT_FORMATS = [
43 "%Y-%m-%d %H:%M:%S", # '2006-10-25 14:30:59'
44 "%Y-%m-%d %H:%M:%S.%f", # '2006-10-25 14:30:59.000200'
45 "%Y-%m-%d %H:%M", # '2006-10-25 14:30'
46 "%m/%d/%Y %H:%M:%S", # '10/25/2006 14:30:59'
47 "%m/%d/%Y %H:%M:%S.%f", # '10/25/2006 14:30:59.000200'
48 "%m/%d/%Y %H:%M", # '10/25/2006 14:30'
49 "%m/%d/%y %H:%M:%S", # '10/25/06 14:30:59'
50 "%m/%d/%y %H:%M:%S.%f", # '10/25/06 14:30:59.000200'
51 "%m/%d/%y %H:%M", # '10/25/06 14:30'
52]
53TIME_INPUT_FORMATS = [
54 "%H:%M:%S", # '14:30:59'
55 "%H:%M:%S.%f", # '14:30:59.000200'
56 "%H:%M", # '14:30'
57]
59# Decimal separator symbol.
60DECIMAL_SEPARATOR = "."
61# Thousand separator symbol.
62THOUSAND_SEPARATOR = ","
63# Number of digits that will be together, when splitting them by
64# THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands.
65NUMBER_GROUPING = 3