code: func mysqlTimeFix(t *mysqlTime, ctx map[string]int) error {
  	// Key of the ctx is the format char, such as `%j` `%p` and so on.
  	if yearOfDay, ok := ctx["%j"]; ok {
  		// TODO: Implement the function that converts day of year to yy:mm:dd.
  		_ = yearOfDay
  	}
  	if valueAMorPm, ok := ctx["%p"]; ok {
  		if t.hour == 0 {
  			return ErrInvalidTimeFormat
  		}
  		if t.hour == 12 {
  			// 12 is a special hour.
  			switch valueAMorPm {
  			case constForAM:
  				t.hour = 0
  			case constForPM:
  				t.hour = 12
  			}
  			return nil
  		}
  		if valueAMorPm == constForPM {
  			t.hour += 12
  		}
  	}
  	return nil
  }
docs: // mysqlTimeFix fixes the mysqlTime use the values in the context.