from google.protobuf import timestamp_pb2 timestamp = timestamp_pb2.Timestamp() timestamp.GetCurrentTime() print(timestamp)