⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
babel
/
__pycache__
/
View File Name :
support.cpython-312.pyc
rfLk F d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z mZmZm Z ddlmZ ddlmZmZmZmZ ddlmZmZmZmZmZmZ e rdd lmZ dd lmZ G d d Z G d d Z G d dejB Z! G d de!ejD Z# ddZ$y)a- babel.support ~~~~~~~~~~~~~ Several classes and functions that help with integrating and using Babel in applications. .. note: the code in this module is not used by Babel itself :copyright: (c) 2013-2023 by the Babel Team. :license: BSD, see LICENSE for more details. )annotationsN)Iterator) TYPE_CHECKINGAnyCallableIterable)Locale)format_dateformat_datetimeformat_timeformat_timedelta)format_compact_currencyformat_compact_decimalformat_currencyformat_decimalformat_percentformat_scientific)Literal)_PredefinedTimeFormatc e Zd ZdZ ddd ddZ d ddZ d ddZ d ddZ d dd Zdd Z dddZ d ddZdd Z d ddZ dddZddZy)FormataC Wrapper class providing the various date and number formatting functions bound to a specific locale and time-zone. >>> from babel.util import UTC >>> from datetime import date >>> fmt = Format('en_US', UTC) >>> fmt.date(date(2007, 4, 1)) u'Apr 1, 2007' >>> fmt.decimal(1.2345) u'1.234' Nlatn)numbering_systemc T t j | | _ || _ || _ y)a Initialize the formatter. :param locale: the locale identifier or `Locale` instance :param tzinfo: the time-zone info (a `tzinfo` instance or `None`) :param numbering_system: The numbering system used for formatting number symbols. Defaults to "latn". The special value "default" will use the default numbering system of the locale. N)r parselocaletzinfor )selfr r r s //usr/lib/python3/dist-packages/babel/support.py__init__zFormat.__init__4 s# ll6* 0 c 2 t ||| j S )zReturn a date formatted according to the given pattern. >>> from datetime import date >>> fmt = Format('en_US') >>> fmt.date(date(2007, 4, 1)) u'Apr 1, 2007' )r )r r )r dateformats r r# zFormat.dateF s 4<