What is the TrueTime API in Google's Spanner?
问题 I tried to read the document multiple times but failed to understand it. Can someone explain it in layman's terms? 回答1: TrueTime is an API available at Google that directly exposes clock uncertainty. Comparing to standard datetime libraries, instead of a particular timestamp, TrueTime's now() function returns an interval of time [earliest, latest]. It also provides two functions: after(t) returns true if t has definitely passed. E.g. t < now().earliest . before(t) returns true if t has