The timestamp package implements an alternative UTC type that encodes efficiently and safely on the client-side.
Values use microsecond precision, the zero point is 1-1-1900 0:00 UTC. The encoding uses only 52 bits to fit safely in a IEEE double floating point value. This ensures compatibility with the Javascript number type.
There are a number of advantages timestamp has over using the official Time data type:
straightforward, compact encoding as a single int64 or double in memory and storage
due to always being UTC, no problems with timezones
direct compatiblity with Javascript or any other programming language that can handle 64bit integers
vendor-agnostic storage in databases as simple 64bit integer