// UnmarshalText implements the encoding.TextUnmarshaler interface.
UnmarshalText implements the encoding.TextUnmarshaler interface.
// UnmarshalText implements the encoding . TextUnmarshaler interface .
func (t *Time) UnmarshalText(text []byte) (err error) {
	input, err := strconv.ParseInt(string(text), 10, 64)
	if err != nil {
		return fmt.Errorf("error while parsing time: %w", err)
	}
	var timestamp = time.Unix(input, 0)
	*t = Time(timestamp)
	return nil
}
func ( t * Time ) UnmarshalText ( text [ ] byte ) ( err error ) { input , err := strconv . ParseInt ( string ( text ) , 10 , 64 ) if err != nil { return fmt . Errorf ( " " , err ) } var timestamp = time . Unix ( input , 0 ) * t = Time ( timestamp ) return nil }
UnmarshalText implements the encoding.TextUnmarshaler interface.
UnmarshalText implements the encoding . TextUnmarshaler interface .