Skip to content
Discussion options

You must be logged in to vote

Good morning! Yeah, ideally you'd be able to use some of the predefined layouts for formatting, but for now you'll have to use the reference format as defined in Golang, i.e:

t := time.format([time.now_ns(), "GMT", "Mon, 02 Jan 2006 15:04:05 MST"])

See https://gosamples.dev/date-time-format-cheatsheet/ for some alternatives.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JinXiu2023
Comment options

Answer selected by JinXiu2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants