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

# Time

The 'time' module provides datetime functionality

### Function Signatures

<pre class="language-go" data-overflow="wrap"><code class="lang-go">// Retrieves the current datetime string.
const datetime = () => String

// Retrieves the number of milliseconds since epoch.
const clock = () => Number

// Retrieves an object representing the current date and time.
const datetimeObject = () => {
<strong>        dayname: String,
</strong>        monthname: String,
        month: String,
        day: String,
        time: String,
        h: String,
        m: String,
        s: String,
        year: String
}

// Pauses the execution for a specified number of milliseconds.
const sleep = (ms: Number) => None

// Delays the execution of a function for a specified number of milliseconds.
const delay = (ms: Number, func: Function) => Any
</code></pre>
