Google Cloud Spanner C++ Client  2.5.0
A C++ Client Library for Google Cloud Spanner
Classes | Namespaces | Typedefs | Functions
timestamp.h File Reference
#include "google/cloud/spanner/version.h"
#include "google/cloud/status_or.h"
#include "absl/time/time.h"
#include <google/protobuf/timestamp.pb.h>
#include <chrono>
#include <cstdint>
#include <limits>
#include <ostream>
#include <string>

Go to the source code of this file.


class  google::cloud::spanner::Timestamp
 A representation of the Spanner TIMESTAMP type: An instant in time. More...
struct  google::cloud::spanner::CommitTimestamp
 A sentinel type used to update a commit timestamp column. More...


 Contains all the Cloud Spanner C++ client types and functions.


template<typename Duration >
using google::cloud::spanner::sys_time = std::chrono::time_point< std::chrono::system_clock, Duration >
 Convenience alias. More...


StatusOr< Timestamp > google::cloud::spanner::MakeTimestamp (absl::Time)
 Construct a Timestamp from an absl::Time. More...
StatusOr< Timestamp > google::cloud::spanner::MakeTimestamp (protobuf::Timestamp const &)
 Construct a Timestamp from a google::protobuf::Timestamp. More...
template<typename Duration >
StatusOr< Timestamp > google::cloud::spanner::MakeTimestamp (sys_time< Duration > const &tp)
 Construct a Timestamp from a std::chrono::time_point on the system clock. More...