// NewTimeStr parses a given string, s, as an ISO 8601 and returns
NewTimeStr parses a given string, s, as an ISO 8601 and returns
// NewTimeStr parses a given string s as an ISO 8601 and returns
func NewTimeStr(s string) (Time, error) {
	if len(s) == 0 {
		return Time{}, nil
	}
	var tmp time.Time
	tmp, err := iso8601.Parse([]byte(s))
	if err != nil {
		return Time{}, err
	}
	return Time{
		Time:  tmp,
		Valid: true,
	}, nil
}
func NewTimeStr ( s string ) ( Time , error ) { if len ( s ) == 0 { return Time { } , nil } var tmp time . Time tmp , err := iso8601 . Parse ( [ ] byte ( s ) ) if err != nil { return Time { } , err } return Time { Time : tmp , Valid : true , } , nil }
NewTimeStr parses a given string, s, as an ISO 8601 and returns
NewTimeStr parses a given string s as an ISO 8601 and returns