to true, and propagates this to our
listener iff this was a state change.

` ToDatetime ` (  _tzinfo=None_ )  ¶

    

Converts Timestamp to a datetime.

Parameters  :

    

**tzinfo** – A datetime.tzinfo subclass; defaults to None.

Returns  :

    

If tzinfo is None, returns a timezone-naive UTC datetime (with no timezone
information, i.e. not aware that it’s UTC).

Otherwise, returns a timezone-aware datetime in the input timezone.

` ToJsonString ` (  )  ¶

    

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’

` ToMicroseconds ` (  )  ¶

    

Converts Timestamp to microseconds since epoch.

` ToMilliseconds ` (  )  ¶

    

Converts Timestamp to milliseconds since epoch.

` ToNanoseconds ` (  )  ¶

    

Converts Timestamp to nanoseconds since epoch.

` ToSeconds ` (  )  ¶

    

Converts Timestamp to seconds since epoch.

` UnknownFields ` (  )  ¶

    

` WhichOneof ` (  _oneof_name_ )  ¶

    

Returns the name of the currently set field inside a oneof, or None.

_property_ ` nanos ` ¶

    

_property_ ` seconds ` ¶

    

###  [ Table of Contents ](../../index.html)

  * [ google.protobuf ](../protobuf.html)
  * [ google.protobuf.any_pb2 ](any_pb2.html)
  * [ google.protobuf.descriptor ](descriptor.html)
  * [ google.protobuf.descriptor_database ](descriptor_database.html)
  * [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html)
  * [ google.protobuf.descriptor_pool ](descriptor_pool.html)
  * [ google.protobuf.duration_pb2 ](duration_pb2.html)
  * [ google.protobuf.empty_pb2 ](empty_pb2.html)
  * [ google.protobuf.field_mask_pb2 ](field_mask_pb2.html)
  * [ google.protobuf.internal.containers ](internal/containers.html)
  * [ google.protobuf.json_format ](json_format.html)
  * [ google.protobuf.message ](message.html)
  * [ google.protobuf.message_factory ](message_factory.html)
  * [ google.protobuf.proto_builder ](proto_builder.html)
  * [ google.protobuf.reflection ](reflection.html)
  * [ google.protobuf.service ](service.html)
  * [ google.protobuf.service_reflection ](service_reflection.html)
  * [ google.protobuf.struct_pb2 ](struct_pb2.html)
  * [ google.protobuf.symbol_database ](symbol_database.html)
  * [ google.protobuf.text_encoding ](text_encoding.html)
  * [ google.protobuf.text_format ](text_format.html)
  * google.protobuf.timestamp_pb2 
  * [ google.protobuf.type_pb2 ](type_pb2.html)
  * [ google.protobuf.unknown_fields ](unknown_fields.html)
  * [ google.protobuf.wrappers_pb2 ](wrappers_pb2.html)

###  Related Topics

  * [ Documentation overview ](../../index.html)
    * Previous: [ google.protobuf.text_format ](text_format.html "previous chapter")
    * Next: [ google.protobuf.type_pb2 ](type_pb2.html "next chapter")

###  This Page

  * [ Show Source ](../../_sources/google/protobuf/timestamp_pb2.rst.txt)

©2008, Google LLC. | Powered by [ Sphinx 2.3.1 ](http://sphinx-doc.org/) & [ Alabaster 0.7.12 ](https://github.com/bitprophet/alabaster) | [ Page source ](../../_sources/google/protobuf/timestamp_pb2.rst.txt)