[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.timestamp\n\n\u003cbr /\u003e\n\nProvides the time since epoch in seconds.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.timestamp`](https://www.tensorflow.org/api_docs/python/tf/timestamp)\n\n\u003cbr /\u003e\n\n tf.timestamp(\n name=None\n ) -\u003e _atypes.TensorFuzzingAnnotation[_atypes.Float64]\n\nReturns the timestamp as a `float64` for seconds since the Unix epoch.\n\n#### Common usages include:\n\n- Logging\n- Providing a random number seed\n- Debugging graph execution\n- Generating timing information, mainly through comparison of timestamps\n\n| **Note:** In graph mode, the timestamp is computed when the op is executed, not when it is added to the graph. In eager mode, the timestamp is computed when the op is eagerly executed.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|--------------------------------------|\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `float64`. ||\n\n\u003cbr /\u003e"]]