Class FormatUtil

Object
ch.aaap.harvestclient.core.util.FormatUtil

public class FormatUtil extends Object
Contains utility methods to get formatters based on user input
  • Constructor Details

    • FormatUtil

      public FormatUtil()
  • Method Details

    • getDateTimeFormatter

      public static DateTimeFormatter getDateTimeFormatter(boolean use12HoursFormat)
      Gets a time formatter according to whether the company uses the 12 hours harvest format or not
      Parameters:
      use12HoursFormat - if the 12 hours format should be used or not
      Returns:
      a @DateTimeFormatter instance