// parseTimeString parses string to time.UnixNano.
parseTimeString parses string to time.UnixNano.
// parseTimeString parses string to time . UnixNano .
func parseTimeString(str string) (int64, error) {
	t := time.Date(0, 0, 0, 0, 0, 0, 0, time.Local)
	if str == "" {
		return t.UnixNano(), nil
	}
	t, err := time.Parse(time.RFC3339, str)
	if err != nil {
		return t.UnixNano(), err
	}
	return t.UnixNano(), nil
}
func parseTimeString ( str string ) ( int64 , error ) { t := time . Date ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , time . Local ) if str == " " { return t . UnixNano ( ) , nil } t , err := time . Parse ( time . RFC3339 , str ) if err != nil { return t . UnixNano ( ) , err } return t . UnixNano ( ) , nil }
parseTimeString parses string to time.UnixNano.
parseTimeString parses string to time . UnixNano .
// TODO: fix null timestamp in upstream hyperd.