> For the complete documentation index, see [llms.txt](https://hyundai-robotics.gitbook.io/hi6-robot-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyundai-robotics.gitbook.io/hi6-robot-language/rl-english/basic-syntax/function/func-datetime.md).

# 2.9.3 Date and Time Functions

| Function | Description                                                                 | Example of usage | Result       |
| -------: | --------------------------------------------------------------------------- | ---------------- | ------------ |
|  date( ) | <p>Returns the current date in string type</p><p>(YYYY-MM-DD format)</p>    | date( )          | "2019-04-17" |
|  time( ) | <p>Returns the current time in string type</p><p>(HH:MM:SS format)</p>      | time( )          | "08:48:14"   |
| timer( ) | Returns the time elapsed in seconds (sec) from when the power was turned on | timer( )         | 2796.37      |
