Skip to content

Commit c9c4c25

Browse files
committed
docs/reference: reword time syntax and data explanation
Signed-off-by: Galen CC <[email protected]>
1 parent 89843be commit c9c4c25

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

content/docs/reference/templates/syntax-and-data.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,12 @@ See [`createTicket`](functions#createticket) for creating a ticket.
891891

892892
## Time
893893

894-
Time and duration types use Go's time package library and its methods >
895-
[https://golang.org/pkg/time/#time](https://golang.org/pkg/time/#Time) and also this although slightly different syntax
896-
all applies here > [https://gobyexample.com/time](https://gobyexample.com/time).
894+
Time and duration types use [Go's time package](https://golang.org/pkg/time/#Time). Go by example lists [some examples
895+
of using _time.Time_](https://gobyexample.com/time) in Go code, which can be referenced for similar use in YAGPDB's
896+
templates.
897+
898+
Some time types in the data that Discord API functions return instead use the _discordgo.Timestamp_ type. These can be
899+
converted to _time.Time_ with the `.Parse` method. These cases are mentioned in the type documentation on this page.
897900

898901
| **Field** | **Description** |
899902
| ------------- | ----------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)