Standard library / time
time.RFC1123Z
Internet date layout with numeric offset. This is a layout, not a timestamp; Parse is not a full RFC validator. Expected stdout: 'Thu, 29 Feb 2024 12:34:56 +0000\n'.
Formal Syntax & Structure
go syntaxgo
const RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700"Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func fixed() time.Time { return time.Date(2024, 2, 29, 12, 34, 56, 123000000, time.UTC) }func main() { fmt.Println(fixed().Format(time.RFC1123Z)) }