# Timestamp

## `this.package.timestamp` Variable

The `this.package.timestamp` variable provides the **exact timestamp (in milliseconds)** representing when the data was sent from the **client environment** to the **JENTIS Environment**.

***

### Purpose

This variable captures the **client-side moment** of event dispatch, allowing for:

* Accurate **time-based segmentation**
* **Latency measurements**
* Event ordering and **synchronization across systems**

***

### Variable Definition

| Property          | Description                                |
| ----------------- | ------------------------------------------ |
| **Variable Name** | `this.package.timestamp`                   |
| **Type**          | `integer` (Unix timestamp in milliseconds) |
| **Scope**         | Available in **server-side variables**     |
| **Timezone**      | UTC                                        |
| **Format**        | Milliseconds since epoch (Unix time)       |

***

### Example Usage

```js
async function() {
    var x = this.package.timestamp; // e.g., 1668157352000
    return x;
}
```

This example returns the exact timestamp of when the event was dispatched from the client to the JENTIS Environment.

***

### Notes

* This is **not the time of processing on the server** — it reflects the **client’s send time**.
* The timestamp is recorded **in milliseconds** for high precision.
* Useful for calculating **delays** between client send and server receipt times.

***

### Use Cases

* Aligning events with external systems based on client timing
* Comparing server receipt time vs. client send time
* Filtering or grouping events by specific time windows

***

### Summary

`this.package.timestamp` is a reliable way to access the original **client-side event time** in milliseconds. It enables precise event ordering, temporal analysis, and accurate data alignment for server-side logic in JENTIS.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jentis.com/developer-guide/variables/server-side-variables/public-function-scope/timestamp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
