Server IP : 184.154.167.98 / Your IP : 3.144.90.203 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /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__'