# tf.timestamp

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/timestamp) |

Provides the time since epoch in seconds.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.timestamp`](https://www.tensorflow.org/api_docs/python/tf/timestamp)

<br />

    tf.timestamp(
        name=None
    )

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

> [!NOTE]
> **Note:** the timestamp is computed when the op is executed, not when it is added to the graph.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `float64`. ||

<br />