> For the complete documentation index, see [llms.txt](https://docs.graphlinq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlinq.io/dev-tooling/blocks/time.md).

# Time

The Time category of Blocks in the GraphLinq IDE focuses on obtaining time and date information and performing manipulations with timestamps. A timestamp serves as a unique label representing a specific moment in time, capturing the date and time when a particular event occurred or when data was created or modified.

GraphLinq utilizes Unix Timestamps to generate current time and date values. Unix timestamps count the number of seconds that have passed since a predefined reference point, known as the "Unix epoch," which is set at January 1, 1970, 00:00:00 UTC (Coordinated Universal Time).

Blocks for Generating Timestamps:

* The [Get Timestamp](/dev-tooling/blocks/time/get-timestamp.md) block provides the current Unix timestamp, indicating the present date and time.
* The [Get Millisecond Timestamp](/dev-tooling/blocks/time/get-milliseconds-timestamp.md) block is similar but includes milliseconds for greater precision in the timestamp.

Subtracting Time from Timestamps:

* To subtract time from the current timestamp, the [Get Timestamp Offset](/dev-tooling/blocks/time/get-timestamp-offset.md) block allows users to specify the desired time interval to deduct.
* The [Get Milliseconds Timestamp Offset](/dev-tooling/blocks/time/get-milliseconds-timestamp-offset.md) block performs the same operation but with milliseconds.

Formatting Timestamps:

* To convert a Unix timestamp into a human-readable date format, the [Format Date](/dev-tooling/blocks/time/format-date.md) block is utilized. Users can customize the date format as desired.
* The [Timestamp to Date](/dev-tooling/blocks/time/timestamp-to-date.md) block serves a similar purpose, enabling the conversion of Unix timestamps to human-readable date formats.
* The [Millisecond Timestamp to Date](/dev-tooling/blocks/time/millisecond-timestamp-to-date.md) block performs the same operation but includes milliseconds for precision.

Additional Time Blocks:

* The [Execution Time Interval](/dev-tooling/blocks/time/execution-time-interval.md) block calculates the time interval between the start and end of executing a specific part of the graph.
* The [Timer](/dev-tooling/blocks/time/timer.md) block can be used to trigger an event after a specified time interval, facilitating time-based operations.

These time-related blocks provide developers with the tools to work with timestamps, manipulate time and date data, and convert between Unix timestamps and human-readable formats, streamlining time-related operations in their graphs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.graphlinq.io/dev-tooling/blocks/time.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.
