Standard library / time
time.Layout
Numeric layout with two-digit year and numeric zone. This is a layout, not a timestamp; Parse is not a full RFC validator. Expected stdout: "02/29 12:34:56PM '24 +0000\n".
Formal Syntax & Structure
go syntaxgo
const Layout = "01/02 03:04:05PM '06 -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.Layout)) }