* @return the formatted time string, not null
   * @throws DateTimeException if an error occurs during printing
   */
  public String toString(DateTimeFormatter formatter) {

    Jdk7Methods.Objects_requireNonNull(formatter, "formatter");
    return formatter.print(this);
  }