• Russ Cox's avatar
    time: clean up MarshalJSON, add RFC3339 method · 1d8250c8
    Russ Cox authored
    encoding/xml: handle time.Time as recognized type
    
    The long term plan is to define an interface that time.Time
    can implement and that encoding/xml can call, but we are
    not going to try to define that interface before Go 1.
    Instead, special-case time.Time in package xml, because
    it is such a fundamental type, as a stop-gap.
    The eventual methods will behave this way.
    
    Fixes #2793.
    
    R=golang-dev, r, r, n13m3y3r
    CC=golang-dev
    https://golang.org/cl/5634051
    1d8250c8
Name
Last commit
Last update
..
example_test.go Loading commit data...
format.go Loading commit data...
internal_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...