Google Cloud Spanner C++ Client  1.32.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.

Classes

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

Namespaces

 google
 
 google::cloud
 The namespace Google Cloud Platform C++ client libraries.
 
 google::cloud::spanner
 Contains all the Cloud Spanner C++ client types and functions.
 
 google::cloud::spanner::v1
 The inlined, versioned namespace for the Cloud Spanner C++ client APIs.
 

Typedefs

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

Functions

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