GIF89a=( ý' 7IAXKgNgYvYx\%wh&h}týh%ýs%xý}9ýRýý&ý0%ý (ý.ýý5ýSDýý&ýa)ýx5ýý;c*!&r)ï7õ<{4ý3ýH§KoTýýYýaqýýqýýFý !ý ' !ýNETSCAPE2.0 , =( ýýpH,ý$rýl:x(tJýZý,výýzýýxL.:ýýzýnýýý|Nýýýýý~ýýýýýýý& !ý0`9Rý}ýý"ý"a:Sý~xýýýýýýýýgýýýEýýýýýýýRýýýEýýýýBýý ýý8ýýDýýý"ýný ýHýýLýýDkDýBýýýýýDýýýTýýýH ýGýýA Rý |ýým&ýýE8ýSýkGýAýpxýaýýýR2XBýýE8Iýýý6Xý:vT)ý~ýýqýåýý"F~%xý ý 4#Zý0O|-4BsýX:= Qý SalýýyXJ`G&|shýýK3l7ýB|ý$'7J©*0!ýýDýn=ýPýýýýý0`ýRýljýýýýv>ýýý5 ý.69ýødýýýýýnlvý9ýýf{ýýýPbxýl5}ýpýýýýý3aýýýIýOýýýý!>ýýýiýý9ýý#ýý)pýa ½ ý{ý)vmýý%D~6fýýs}RýDýW Eý`!ý ý&L8xý ý{)x`X/>ý}mýýRý*|`Dý=ý_ ^ý5!_&'aýOý7ýcýý`DCx`ý¥ý9ýYýFýýý`?ýý"ý ýn@`ý} lýý@4>ýd S ývýxNýý"@~dýý=ýgýs~Gýýýýýýud &p8Qý)«lXDýýýýA~HýySunýjýýýk*DýLHý] ýýC"JýýXb~ªwSt}6K,ýýqýS:9*:ýýýlý@ý`ýý ý.ìýt9ýSý[©:ýý=`9Nýýýý{¿ýA !Rý:ýýý6ýýxý0ý_ ý;ýýýýýý^ýýý#ýýýý!ýýýýUýýý;0L1ýýýýýp%AýýU,uýý%ýSýý!ýýý~`ýGýýýý ýýý=4ýnpý3ýýýýýýýýýuýuýn|%2ýIýýrý#0ýýJ``8ý@S@5ýýýý^`8Eý]ý.ýSýýý7 ý ý0ýj SýDý zýýýiýSýýýýý!ýýýlýýw9*ýDýIýnEXýýý &AýGoýQfýýFýý;ýýý}ýJýýýýF5ýýQ|ýýýXýýTýýyýýý]ý o ýýC=ýý:ýýýPB@ DýSý(>ýCýx}`ýýxJ,ýàýýp+eE0`ý}`Aý/NEýý ý9@ýýý Hý7ý!%B0`ýl*ýý!8 2ý%ý ý:ý1ý0Eýýux%nP1ý!ýC)ýP81lýxF#¬{ýýýýB0>ýý
Server IP : 217.18.85.50 / Your IP : 3.141.47.139 Web Server : LiteSpeed System : Linux server50.tr85.dhs.com.tr 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : ferhatgenc ( ) PHP Version : 7.2.34 Disable Function : restore_ini,mail,openbasedir,f_open,system,dl,array_compare,array_user_key_compare,passthru,cat,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,ini_restore,mysql_list_dbs,getmyuid,pconnect,link,symlink,fin,passthruexec,fileread,shell_exec,pcntl_exec,ini_alter,leak,apache_child_terminate,chown,posix_kill,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,allow_url_fopen,fpassthru,execute,shell,chgrp,passthru,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,foreach,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_version,apache_getenv,apache_note,apache_setenv,virtualal MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python2.7/site-packages/parsedatetime/pdt_locales/ |
Upload File : |
# -*- encoding: utf-8 -*- """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: range = xrange except NameError: pass try: import PyICU as pyicu except ImportError: pyicu = None def icu_object(mapping): return type('_icu', (object,), mapping) def merge_weekdays(base_wd, icu_wd): result = [] for left, right in zip(base_wd, icu_wd): if left == right: result.append(left) continue left = set(left.split('|')) right = set(right.split('|')) result.append('|'.join(left | right)) return result def get_icu(locale): from . import base result = dict([(key, getattr(base, key)) for key in dir(base) if not key.startswith('_')]) result['icu'] = None if pyicu is None: return icu_object(result) if locale is None: locale = 'en_US' result['icu'] = icu = pyicu.Locale(locale) if icu is None: return icu_object(result) # grab spelled out format of all numbers from 0 to 100 rbnf = pyicu.RuleBasedNumberFormat(pyicu.URBNFRuleSetTag.SPELLOUT, icu) result['numbers'].update([(rbnf.format(i), i) for i in range(0, 100)]) symbols = result['symbols'] = pyicu.DateFormatSymbols(icu) # grab ICU list of weekdays, skipping first entry which # is always blank wd = [w.lower() for w in symbols.getWeekdays()[1:]] swd = [sw.lower() for sw in symbols.getShortWeekdays()[1:]] # store them in our list with Monday first (ICU puts Sunday first) result['Weekdays'] = merge_weekdays(result['Weekdays'], wd[1:] + wd[0:1]) result['shortWeekdays'] = merge_weekdays(result['shortWeekdays'], swd[1:] + swd[0:1]) result['Months'] = [m.lower() for m in symbols.getMonths()] result['shortMonths'] = [sm.lower() for sm in symbols.getShortMonths()] keys = ['full', 'long', 'medium', 'short'] createDateInstance = pyicu.DateFormat.createDateInstance createTimeInstance = pyicu.DateFormat.createTimeInstance icu_df = result['icu_df'] = { 'full': createDateInstance(pyicu.DateFormat.kFull, icu), 'long': createDateInstance(pyicu.DateFormat.kLong, icu), 'medium': createDateInstance(pyicu.DateFormat.kMedium, icu), 'short': createDateInstance(pyicu.DateFormat.kShort, icu), } icu_tf = result['icu_tf'] = { 'full': createTimeInstance(pyicu.DateFormat.kFull, icu), 'long': createTimeInstance(pyicu.DateFormat.kLong, icu), 'medium': createTimeInstance(pyicu.DateFormat.kMedium, icu), 'short': createTimeInstance(pyicu.DateFormat.kShort, icu), } result['dateFormats'] = {} result['timeFormats'] = {} for x in keys: result['dateFormats'][x] = icu_df[x].toPattern() result['timeFormats'][x] = icu_tf[x].toPattern() am = pm = ts = '' # ICU doesn't seem to provide directly the date or time separator # so we have to figure it out o = result['icu_tf']['short'] s = result['timeFormats']['short'] result['usesMeridian'] = 'a' in s result['uses24'] = 'H' in s # '11:45 AM' or '11:45' s = o.format(datetime.datetime(2003, 10, 30, 11, 45)) # ': AM' or ':' s = s.replace('11', '').replace('45', '') if len(s) > 0: ts = s[0] if result['usesMeridian']: # '23:45 AM' or '23:45' am = s[1:].strip() s = o.format(datetime.datetime(2003, 10, 30, 23, 45)) if result['uses24']: s = s.replace('23', '') else: s = s.replace('11', '') # 'PM' or '' pm = s.replace('45', '').replace(ts, '').strip() result['timeSep'] = [ts] result['meridian'] = [am, pm] if am and pm else [] o = result['icu_df']['short'] s = o.format(datetime.datetime(2003, 10, 30, 11, 45)) s = s.replace('10', '').replace('30', '').replace( '03', '').replace('2003', '') if len(s) > 0: ds = s[0] else: ds = '/' result['dateSep'] = [ds] s = result['dateFormats']['short'] l = s.lower().split(ds) dp_order = [] for s in l: if len(s) > 0: dp_order.append(s[:1]) result['dp_order'] = dp_order return icu_object(result)