Class Timestamp (1.27.2)

API documentation for bigquery_v2.types.Timestamp class.

Inheritance

builtins.object > google.protobuf.pyext._message.CMessage > builtins.object > google.protobuf.message.Message > builtins.object > google.protobuf.internal.well_known_types.Timestamp > Timestamp

Methods

ByteSize

Returns the size of the message in bytes.

Clear

Clears the message.

ClearExtension

Clears a message field.

ClearField

Clears a message field.

CopyFrom

Copies a protocol message into the current message.

DiscardUnknownFields

Discards the unknown fields.

FindInitializationErrors

Finds unset required fields.

FromDatetime

FromDatetime(dt)

Converts datetime to Timestamp.

FromJsonString

FromJsonString(value)

Parse a RFC 3339 date string format to Timestamp.

Exceptions
TypeDescription
ValueErrorOn parsing problems.

FromMicroseconds

FromMicroseconds(micros)

Converts microseconds since epoch to Timestamp.

FromMilliseconds

FromMilliseconds(millis)

Converts milliseconds since epoch to Timestamp.

FromNanoseconds

FromNanoseconds(nanos)

Converts nanoseconds since epoch to Timestamp.

FromSeconds

FromSeconds(seconds)

Converts seconds since epoch to Timestamp.

FromString

Creates new method instance from given serialized data.

GetCurrentTime

GetCurrentTime()

Get the current UTC into Timestamp.

HasExtension

Checks if a message field is set.

HasField

Checks if a message field is set.

IsInitialized

Checks if all required fields of a protocol message are set.

ListFields

Lists all set fields of a message.

MergeFrom

Merges a protocol message into the current message.

MergeFromString

Merges a serialized message into the current message.

ParseFromString

Parses a serialized message into the current message.

RegisterExtension

Registers an extension with the current message.

SerializePartialToString

Serializes the message to a string, even if it isn't initialized.

SerializeToString

Serializes the message to a string, only for initialized messages.

SetInParent

Sets the has bit of the given field in its parent message.

ToDatetime

ToDatetime(tzinfo=None)

Converts Timestamp to a datetime.

ToJsonString

ToJsonString()

Converts Timestamp to RFC 3339 date string format.

ToMicroseconds

ToMicroseconds()

Converts Timestamp to microseconds since epoch.

ToMilliseconds

ToMilliseconds()

Converts Timestamp to milliseconds since epoch.

ToNanoseconds

ToNanoseconds()

Converts Timestamp to nanoseconds since epoch.

ToSeconds

ToSeconds()

Converts Timestamp to seconds since epoch.

UnknownFields

Parse unknown field set

WhichOneof

Returns the name of the field set inside a oneof, or None if no field is set.

__getstate__

__getstate__()

Support the pickle protocol.

__setstate__

__setstate__(state)

Support the pickle protocol.