Class ISO8601.SHORT

  • Enclosing class:
    ISO8601

    public static class ISO8601.SHORT
    extends java.lang.Object
    Variants that exclude the milliseconds from the formatted string.
    • Constructor Summary

      Constructors 
      Constructor Description
      SHORT()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(long millisSinceEpoch)  
      static java.lang.String format​(long millisSinceEpoch, int tzOffsetInSeconds)  
      static java.lang.String format​(java.time.Clock clock)  
      static java.lang.String format​(java.util.Calendar cal)  
      static java.lang.String format​(java.util.Date date)  
      static java.lang.String format​(java.util.Date date, int tzOffsetInSeconds)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SHORT

        public SHORT()
    • Method Detail

      • format

        public static java.lang.String format​(java.util.Date date)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(Date)
      • format

        public static java.lang.String format​(java.time.Clock clock)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(Clock)
      • format

        public static java.lang.String format​(long millisSinceEpoch)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(long)
      • format

        public static java.lang.String format​(java.util.Date date,
                                              int tzOffsetInSeconds)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(Date, int)
      • format

        public static java.lang.String format​(long millisSinceEpoch,
                                              int tzOffsetInSeconds)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(long, int)
      • format

        public static java.lang.String format​(java.util.Calendar cal)
                                       throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        ISO8601.format(Calendar)