|
| def | FromDatetime (self, dt) |
| |
| def | FromDatetime (self, dt) |
| |
| def | FromJsonString (self, value) |
| |
| def | FromJsonString (self, value) |
| |
| def | FromMicroseconds (self, micros) |
| |
| def | FromMicroseconds (self, micros) |
| |
| def | FromMilliseconds (self, millis) |
| |
| def | FromMilliseconds (self, millis) |
| |
| def | FromNanoseconds (self, nanos) |
| |
| def | FromNanoseconds (self, nanos) |
| |
| def | FromSeconds (self, seconds) |
| |
| def | FromSeconds (self, seconds) |
| |
| def | GetCurrentTime (self) |
| |
| def | GetCurrentTime (self) |
| |
| def | ToDatetime (self) |
| |
| def | ToDatetime (self) |
| |
| def | ToJsonString (self) |
| |
| def | ToJsonString (self) |
| |
| def | ToMicroseconds (self) |
| |
| def | ToMicroseconds (self) |
| |
| def | ToMilliseconds (self) |
| |
| def | ToMilliseconds (self) |
| |
| def | ToNanoseconds (self) |
| |
| def | ToNanoseconds (self) |
| |
| def | ToSeconds (self) |
| |
| def | ToSeconds (self) |
| |
◆ FromDatetime() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromDatetime |
( |
|
self, |
|
|
|
dt |
|
) |
| |
◆ FromDatetime() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromDatetime |
( |
|
self, |
|
|
|
dt |
|
) |
| |
◆ FromJsonString() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromJsonString |
( |
|
self, |
|
|
|
value |
|
) |
| |
Parse a RFC 3339 date string format to Timestamp.
Args:
value: A date string. Any fractional digits (or none) and any offset are
accepted as long as they fit into nano-seconds precision.
Example of accepted format: '1972-01-01T10:00:20.021-05:00'
Raises:
ValueError: On parsing problems.
Definition at line 128 of file protobuf/python/google/protobuf/internal/well_known_types.py.
◆ FromJsonString() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromJsonString |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ FromMicroseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromMicroseconds |
( |
|
self, |
|
|
|
micros |
|
) |
| |
◆ FromMicroseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromMicroseconds |
( |
|
self, |
|
|
|
micros |
|
) |
| |
◆ FromMilliseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromMilliseconds |
( |
|
self, |
|
|
|
millis |
|
) |
| |
◆ FromMilliseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromMilliseconds |
( |
|
self, |
|
|
|
millis |
|
) |
| |
◆ FromNanoseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromNanoseconds |
( |
|
self, |
|
|
|
nanos |
|
) |
| |
◆ FromNanoseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromNanoseconds |
( |
|
self, |
|
|
|
nanos |
|
) |
| |
◆ FromSeconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromSeconds |
( |
|
self, |
|
|
|
seconds |
|
) |
| |
◆ FromSeconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.FromSeconds |
( |
|
self, |
|
|
|
seconds |
|
) |
| |
◆ GetCurrentTime() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.GetCurrentTime |
( |
|
self | ) |
|
◆ GetCurrentTime() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.GetCurrentTime |
( |
|
self | ) |
|
◆ ToDatetime() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToDatetime |
( |
|
self | ) |
|
◆ ToDatetime() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToDatetime |
( |
|
self | ) |
|
◆ ToJsonString() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToJsonString |
( |
|
self | ) |
|
Converts Timestamp to RFC 3339 date string format.
Returns:
A string converted from timestamp. The string is always Z-normalized
and uses 3, 6 or 9 fractional digits as required to represent the
exact time. Example of the return format: '1972-01-01T10:00:20.021Z'
Definition at line 100 of file protobuf/python/google/protobuf/internal/well_known_types.py.
◆ ToJsonString() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToJsonString |
( |
|
self | ) |
|
◆ ToMicroseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToMicroseconds |
( |
|
self | ) |
|
◆ ToMicroseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToMicroseconds |
( |
|
self | ) |
|
◆ ToMilliseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToMilliseconds |
( |
|
self | ) |
|
◆ ToMilliseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToMilliseconds |
( |
|
self | ) |
|
◆ ToNanoseconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToNanoseconds |
( |
|
self | ) |
|
◆ ToNanoseconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToNanoseconds |
( |
|
self | ) |
|
◆ ToSeconds() [1/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToSeconds |
( |
|
self | ) |
|
◆ ToSeconds() [2/2]
| def google.protobuf.internal.well_known_types.Timestamp.ToSeconds |
( |
|
self | ) |
|
◆ __slots__
| tuple Timestamp.__slots__ = () |
|
staticprivate |
◆ nanos
| google.protobuf.internal.well_known_types.Timestamp.nanos |
◆ seconds
| google.protobuf.internal.well_known_types.Timestamp.seconds |
The documentation for this class was generated from the following file: