summaryrefslogtreecommitdiffstats
path: root/contrib/python/types-protobuf/google-stubs/protobuf/duration.pyi
blob: c7e858fedbf3021b3e42e15ef19c4b33e2d08c2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from datetime import timedelta

from google.protobuf.duration_pb2 import Duration

def from_json_string(value: str) -> Duration: ...
def from_microseconds(micros: float) -> Duration: ...
def from_milliseconds(millis: float) -> Duration: ...
def from_nanoseconds(nanos: float) -> Duration: ...
def from_seconds(seconds: float) -> Duration: ...
def from_timedelta(td: timedelta) -> Duration: ...
def to_json_string(duration: Duration) -> str: ...
def to_microseconds(duration: Duration) -> int: ...
def to_milliseconds(duration: Duration) -> int: ...
def to_nanoseconds(duration: Duration) -> int: ...
def to_seconds(duration: Duration) -> int: ...
def to_timedelta(duration: Duration) -> timedelta: ...