Class DateFunctions.FormatDate

java.lang.Object
org.apache.juneau.commons.svl.TypedFunction
org.apache.juneau.commons.svl.functions.DateFunctions.FormatDate
All Implemented Interfaces:
VarFunction
Enclosing class:
DateFunctions

public static class DateFunctions.FormatDate extends TypedFunction
#{formatDate(epoch)} — renders epoch as ISO-8601 (Instant.toString()).

#{formatDate(epoch, format)} — renders epoch per a DateTimeFormatter pattern in UTC.

  • Constructor Details

  • Method Details

    • name

      public String name()
      Description copied from interface: VarFunction
      The function's invocation name as it appears between #{} and the opening parenthesis in the template. Must consist of ASCII letters, digits, and underscores; must begin with a letter.
      Returns:
      The invocation name. Never null or empty.
    • invoke

      public String invoke(long epoch)
    • invoke

      public String invoke(long epoch, String format)