Standard library / time

time.RFC850

Legacy date layout with full weekday and two-digit year. UTC displays UTC rather than GMT as required by the original protocol. This is a layout, not a timestamp; Parse is not a full RFC validator. Expected stdout: 'Thursday, 29-Feb-24 12:34:56 UTC\n'.

Formal Syntax & Structure

go syntaxgo
const RFC850      = "Monday, 02-Jan-06 15:04:05 MST"

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.RFC850)) }
Go Reference