Server IP : 85.214.239.14 / Your IP : 3.22.68.29 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/proc/self/root/usr/lib/python3/dist-packages/parsedatetime/pdt_locales/ |
Upload File : |
# -*- 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}, }