tf.timestamp

Provides the time since epoch in seconds.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.timestamp

Used in the notebooks

Used in the tutorials

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.