Class Dates


  • public class Dates
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int JSON_TIME_LENGTH  
    • Constructor Summary

      Constructors 
      Constructor Description
      Dates()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Date fromISO8601​(char[] charArray, int from, int to)  
      static java.util.Date fromJsonDate​(char[] charArray, int from, int to)  
      static boolean isISO8601​(char[] charArray, int start, int to)  
      static boolean isISO8601QuickCheck​(char[] charArray, int start, int to)  
      static boolean isJsonDate​(char[] charArray, int start, int to)  
      static java.util.Date toDate​(java.util.TimeZone tz, int year, int month, int day, int hour, int minute, int second)  
      static java.util.Date toDate​(java.util.TimeZone tz, int year, int month, int day, int hour, int minute, int second, int miliseconds)  
      static long utc​(long time)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • JSON_TIME_LENGTH

        public static final int JSON_TIME_LENGTH
    • Constructor Detail

      • Dates

        public Dates()
    • Method Detail

      • utc

        public static long utc​(long time)
      • toDate

        public static java.util.Date toDate​(java.util.TimeZone tz,
                                            int year,
                                            int month,
                                            int day,
                                            int hour,
                                            int minute,
                                            int second)
      • toDate

        public static java.util.Date toDate​(java.util.TimeZone tz,
                                            int year,
                                            int month,
                                            int day,
                                            int hour,
                                            int minute,
                                            int second,
                                            int miliseconds)
      • fromISO8601

        public static java.util.Date fromISO8601​(char[] charArray,
                                                 int from,
                                                 int to)
      • fromJsonDate

        public static java.util.Date fromJsonDate​(char[] charArray,
                                                  int from,
                                                  int to)
      • isISO8601

        public static boolean isISO8601​(char[] charArray,
                                        int start,
                                        int to)
      • isISO8601QuickCheck

        public static boolean isISO8601QuickCheck​(char[] charArray,
                                                  int start,
                                                  int to)
      • isJsonDate

        public static boolean isJsonDate​(char[] charArray,
                                         int start,
                                         int to)