|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/google/protobuf/__pycache__/ |
U
N��gp
� @ s� d Z ddlZddlmZ eed�dd�Zeed�dd �Zeed
�dd�Zeed
�dd�Z eed�dd�Z
ejed�dd�Zeed�dd�Z
eed�dd�Zeed�dd�Zeed�dd�Zeed�dd �Zeejd�d!d"�ZdS )#z"Contains the Duration helper APIs.� N)�Duration)�value�returnc C s t � }|�| � |S )a. Converts a string to Duration.
Args:
value: A string to be converted. The string must end with 's'. Any
fractional digits (or none) are accepted as long as they fit into
precision. For example: "1s", "1.01s", "1.0000001s", "-3.100s"
Raises:
ValueError: On parsing problems.
)r ZFromJsonString)r �duration� r �E/opt/cppython/lib/python3.8/site-packages/google/protobuf/duration.py�from_json_string s
r )�microsr c C s t � }|�| � |S )z"Converts microseconds to Duration.)r ZFromMicroseconds)r r r r r �from_microseconds s
r
)�millisr c C s t � }|�| � |S )z"Converts milliseconds to Duration.)r ZFromMilliseconds)r r r r r �from_milliseconds&