// Marshals an instant as the equivalent seconds value, rounded to the nearest millisecond.
Marshals an instant as the equivalent seconds value, rounded to the nearest millisecond.
// Marshals an instant as the equivalent seconds value rounded to the nearest millisecond .
func (t instant) MarshalText() ([]byte, error) {
	s := fmt.Sprintf("%.3f", time.Duration(t).Seconds())
	return []byte(s), nil
}
func ( t instant ) MarshalText ( ) ( [ ] byte , error ) { s := fmt . Sprintf ( " " , time . Duration ( t ) . Seconds ( ) ) return [ ] byte ( s ) , nil }
Marshals an instant as the equivalent seconds value, rounded to the nearest millisecond.
Marshals an instant as the equivalent seconds value rounded to the nearest millisecond .