tf.raw_ops.Timestamp

Provides the time since epoch in seconds.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.Timestamp

Returns the timestamp as a float64 for seconds since the Unix epoch.

Common usages include:

  • Logging
  • Providing a random number seed
  • Debugging graph execution
  • Generating timing information, mainly through comparison of timestamps

name A name for the operation (optional).

A Tensor of type float64.