func (t TimeRFC1123) String() string {
	b, err := t.MarshalText()
	if err != nil {
		return ""
	}
	return string(b)
}
String returns the Time formatted as an RFC1123 date-time string (i.e.,
Mon, 02 Jan 2006 15:04:05 MST).
package date
import (
	"errors"
	"time"
)
const (
	rfc1123JSON = `"` + time.RFC1123 + `"`
	rfc1123     = time.RFC1123
)
type TimeRFC1123 struct {
	time.Time
}
func (t *TimeRFC1123) UnmarshalJSON(data []byte) (err error) {
	t.Time, err = ParseTime(rfc1123JSON, string(data))
	if err != nil {
		return err
	}
	return nil
}
func (t TimeRFC1123) MarshalJSON() ([]byte, error) {
	if y := t.Year(); y < 0 || y >= 10000 {
		return nil, errors.New("Time.MarshalJSON: year outside of range [0,9999]")
	}
	b := []byte(t.Format(rfc1123JSON))
	return b, nil
}
func (t TimeRFC1123) MarshalText() ([]byte, error) {
	if y := t.Year(); y < 0 || y >= 10000 {
		return nil, errors.New("Time.MarshalText: year outside of range [0,9999]")
	}
	b := []byte(t.Format(rfc1123))
	return b, nil
}
func (t *TimeRFC1123) UnmarshalText(data []byte) (err error) {
	t.Time, err = ParseTime(rfc1123, string(data))
	if err != nil {
		return err
	}
	return nil
}
func (t TimeRFC1123) MarshalBinary() ([]byte, error) {
	return t.MarshalText()
}
func (t *TimeRFC1123) UnmarshalBinary(data []byte) error {
	return t.UnmarshalText(data)
}
func (t TimeRFC1123) ToTime() time.Time {
	return t.Time
}