# Time

Represents the [UNIX Epoch time](https://en.wikipedia.org/wiki/Unix_time).

```ruby
Time()        # seconds since the Epoch to now
Time(sec)     # seconds since the Epoch to sec
```

Example:

```ruby
var t = Time()      # Time object representing current time

say t.sec           # get the number of seconds (as a Number) from object t

say Time.micro      # micro-seconds since the Epoch (as a Number)
say Time.sec        # seconds since the Epoch (as a Number)

say t.local         # Date object with local time zone
say t.gmt           # Date object with Greenwich time zone
```


---

# 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://trizen.gitbook.io/sidef-lang/syntax_and_semantics/literals/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.
