Skip to content
Merged
Changes from 2 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
9 changes: 6 additions & 3 deletions content/docs/reference/templates/syntax-and-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,12 @@ See [`createTicket`](functions#createticket) for creating a ticket.

## Time

Time and duration types use Go's time package library and its methods >
[https://golang.org/pkg/time/#time](https://golang.org/pkg/time/#Time) and also this although slightly different syntax
all applies here > [https://gobyexample.com/time](https://gobyexample.com/time).
Time and duration types use [Go's time package](https://golang.org/pkg/time/#Time). Go by Example lists [some examples
of using _time.Time_](https://gobyexample.com/time) in Go code, which can be referenced for similar use in YAGPDB's
templates.

Some time types in the data that Discord API functions return instead use the _discordgo.Timestamp_ type. These can be
converted to _time.Time_ with the `.Parse` method. These cases are mentioned in the type documentation on this page.

| **Field** | **Description** |
| ------------- | ----------------------------------------------------------------------------------------------------------- |
Expand Down