Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/chatbot/variables/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Displays the time in the given timezone. A list can be found here [Timezones](ht

#### Parameters

This variable accepts a timezone as input. If no timezone is provided the variable will error.
This variable accepts a timezone as input. If no timezone is provided the variable will return UTC time. In case timezone is unknown, the variable will error.

#### Example Input

Expand All @@ -39,16 +39,24 @@ Displays a countdown until an inputted UTC timestamp.

#### Parameters

This variable accepts a timezone as input. If no timezone is provided the variable will error.
This variable accepts a timezone as input in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). If no timezone is provided, the variable returns UTC time. In the format is wrong, the variable will error.

#### Example Input

```
next stream in ${time.until 19:00}
next stream in ${time.until 2024-06-20T19:00:00-03:00}
```

#### Example Output

```
next stream in 7 hours 59 mins
next stream in 1 day 11 hours
```

#### Example Error

```
parsing time "19:00:00-03:00" as "2006-01-02T15:04:05Z07:00": cannot parse "19:00:00-03:00" as "2006"
```