This file is indexed.

/usr/lib/python3/dist-packages/parsedatetime/pdt_locales/de_DE.py is in python3-parsedatetime 2.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .base import *  # noqa

# don't use an unicode string
localeID = 'de_DE'
dateSep = ['.']
timeSep = [':']
meridian = []
usesMeridian = False
uses24 = True
decimal_mark = ','

Weekdays = [
    'montag', 'dienstag', 'mittwoch',
    'donnerstag', 'freitag', 'samstag', 'sonntag',
]
shortWeekdays = ['mo', 'di', 'mi', 'do', 'fr', 'sa', 'so']
Months = [
    'januar', 'februar', 'märz',
    'april', 'mai', 'juni',
    'juli', 'august', 'september',
    'oktober', 'november', 'dezember',
]
shortMonths = [
    'jan', 'feb', 'mrz', 'apr', 'mai', 'jun',
    'jul', 'aug', 'sep', 'okt', 'nov', 'dez',
]

dateFormats = {
    'full': 'EEEE, d. MMMM yyyy',
    'long': 'd. MMMM yyyy',
    'medium': 'dd.MM.yyyy',
    'short': 'dd.MM.yy',
}

timeFormats = {
    'full': 'HH:mm:ss v',
    'long': 'HH:mm:ss z',
    'medium': 'HH:mm:ss',
    'short': 'HH:mm',
}

dp_order = ['d', 'm', 'y']

# the short version would be a capital M,
# as I understand it we can't distinguish
# between m for minutes and M for months.
units = {
    'seconds': ['sekunden', 'sek', 's'],
    'minutes': ['minuten', 'min', 'm'],
    'hours': ['stunden', 'std', 'h'],
    'days': ['tag', 'tage', 't'],
    'weeks': ['wochen', 'w'],
    'months': ['monat', 'monate'],
    'years': ['jahr', 'jahre', 'j'],
}

re_values = re_values.copy()
re_values.update({
    'specials': 'am|dem|der|im|in|den|zum',
    'timeseparator': ':',
    'rangeseparator': '-',
    'daysuffix': '',
    'qunits': 'h|m|s|t|w|m|j',
    'now': ['jetzt'],
})

# Used to adjust the returned date before/after the source
# still looking for insight on how to translate all of them to german.
Modifiers = {
    'from': 1,
    'before': -1,
    'after': 1,
    'vergangener': -1,
    'vorheriger': -1,
    'prev': -1,
    'letzter': -1,
    'nächster': 1,
    'dieser': 0,
    'previous': -1,
    'in a': 2,
    'end of': 0,
    'eod': 0,
    'eo': 0,
}

# morgen/abermorgen does not work, see
# http://code.google.com/p/parsedatetime/issues/detail?id=19
dayOffsets = {
    'morgen': 1,
    'heute': 0,
    'gestern': -1,
    'vorgestern': -2,
    'übermorgen': 2,
}

# special day and/or times, i.e. lunch, noon, evening
# each element in the dictionary is a dictionary that is used
# to fill in any value to be replace - the current date/time will
# already have been populated by the method buildSources
re_sources = {
    'mittag': {'hr': 12, 'mn': 0, 'sec': 0},
    'mittags': {'hr': 12, 'mn': 0, 'sec': 0},
    'mittagessen': {'hr': 12, 'mn': 0, 'sec': 0},
    'morgen': {'hr': 6, 'mn': 0, 'sec': 0},
    'morgens': {'hr': 6, 'mn': 0, 'sec': 0},
    'frühstück': {'hr': 8, 'mn': 0, 'sec': 0},
    'abendessen': {'hr': 19, 'mn': 0, 'sec': 0},
    'abend': {'hr': 18, 'mn': 0, 'sec': 0},
    'abends': {'hr': 18, 'mn': 0, 'sec': 0},
    'mitternacht': {'hr': 0, 'mn': 0, 'sec': 0},
    'nacht': {'hr': 21, 'mn': 0, 'sec': 0},
    'nachts': {'hr': 21, 'mn': 0, 'sec': 0},
    'heute abend': {'hr': 21, 'mn': 0, 'sec': 0},
    'heute nacht': {'hr': 21, 'mn': 0, 'sec': 0},
    'feierabend': {'hr': 17, 'mn': 0, 'sec': 0},
}