| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/babel/__pycache__/ |
Upload File : |
3
4\0XW � @ s� d Z ddlZddlZddlmZ ddlmZmZmZm Z ddl
mZmZm
Z
mZmZ ddlmZmZmZ G dd� de�ZG d d
� d
e�ZG dd� deje�ZG d
d� deej�ZdS )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 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Locale)�format_date�format_datetime�format_time�format_timedelta)�
format_number�format_decimal�format_currency�format_percent�format_scientific)�PY2� text_type�text_to_nativec @ sn e Zd ZdZddd�Zddd�Zddd �Zdd
d�Zddd�Zdd� Z d dd�Z
dd� Zd!dd�Zdd� Z
dS )"�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'
Nc C s t j|�| _|| _dS )z�Initialize the formatter.
:param locale: the locale identifier or `Locale` instance
:param tzinfo: the time-zone info (a `tzinfo` instance or `None`)
N)r �parse�locale�tzinfo)�selfr r � r �/usr/lib/python3.6/support.py�__init__'