Enum Class DateHelper

java.lang.Object
java.lang.Enum<DateHelper>
io.kestra.core.runners.handlebars.helpers.DateHelper
All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>, Serializable, Comparable<DateHelper>, Constable

public enum DateHelper extends Enum<DateHelper> implements com.github.jknack.handlebars.Helper<Object>
  • Enum Constant Details

    • dateFormat

      public static final DateHelper dateFormat

      Usage:

          {{dateFormat date ["format"] [format="format"][tz=timeZone|timeZoneId]}}
       

      Format parameters is one of:

      • "full": Sunday, September 8, 2013 at 4:19:12 PM Central European Summer Time
      • "long": September 8, 2013 at 4:19:12 PM CEST
      • "medium": Sep 8, 2013, 4:19:12 PM
      • "short": 9/8/13, 4:19 PM
      • "iso": 2013-09-08T16:19:12.000000+02:00
      • "iso_sec": 2013-09-08T16:19:12+02:00
      • "sql": 2013-09-08 16:19:12.000000
      • "sql_seq": 2013-09-08 16:19:12
      • "iso_date_time": 2013-09-08T16:19:12+02:00[Europe/Paris]
      • "iso_date": 2013-09-08+02:00
      • "iso_time": 16:19:12+02:00
      • "iso_local_date": 2013-09-08
      • "iso_instant": 2013-09-08T14:19:12Z
      • "iso_local_date_time": 2013-09-08T16:19:12
      • "iso_local_time": 16:19:12
      • "iso_offset_time": 16:19:12+02:00
      • "iso_ordinal_date": 2013-251+02:00
      • "iso_week_date": 2013-W36-7+02:00
      • "iso_zoned_date_time": 2013-09-08T16:19:12+02:00[Europe/Paris]
      • "rfc_1123_date_time": Sun, 8 Sep 2013 16:19:12 +0200
      • "pattern": a date pattern.
      Otherwise, the default formatter will be used. The format option can be specified as a parameter or hash (a.k.a named parameter).
    • now

      public static final DateHelper now
    • timestamp

      public static final DateHelper timestamp
    • nanotimestamp

      public static final DateHelper nanotimestamp
    • microtimestamp

      public static final DateHelper microtimestamp
    • dateAdd

      public static final DateHelper dateAdd
  • Method Details

    • values

      public static DateHelper[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DateHelper valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null