caikit.core.data_model.timestamp ================================ .. py:module:: caikit.core.data_model.timestamp .. autoapi-nested-parse:: This module holds common utilities for managing timestamps in protobufs Attributes ---------- .. autoapisummary:: caikit.core.data_model.timestamp.log caikit.core.data_model.timestamp.error caikit.core.data_model.timestamp.TIMESTAMP_PROTOBUF_NAME Functions --------- .. autoapisummary:: caikit.core.data_model.timestamp.datetime_to_proto caikit.core.data_model.timestamp.proto_to_datetime Module Contents --------------- .. py:data:: log .. py:data:: error .. py:data:: TIMESTAMP_PROTOBUF_NAME :value: 'google.protobuf.Timestamp' .. py:function:: datetime_to_proto(datetime_: datetime.datetime) -> google.protobuf.timestamp_pb2.Timestamp Builds a google.protobuf.timestamp_pb2.Timestamp out of the provided datetime.datetime .. py:function:: proto_to_datetime(time_pb2: google.protobuf.timestamp_pb2.Timestamp) -> datetime.datetime Builds a datetime.datetime out of the provided google.protobuf.timestamp_pb2.Timestamp