test_class.declarator: logger = LoggerFactory.getLogger(TestDateTime.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(TestDateTime.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: A_DATE = 1310685769478L
test_class.modifier: private static final
test_class.original_string: private static final long A_DATE = 1310685769478L;
test_class.type: long
test_class.var_name: A_DATE
test_class.declarator: A_NORMAL_STRING = "2011-07-14T23:22:49.478Z"
test_class.modifier: private static final
test_class.original_string: private static final String A_NORMAL_STRING = "2011-07-14T23:22:49.478Z";
test_class.type: String
test_class.var_name: A_NORMAL_STRING
test_class.declarator: A_TIMEZONE = TimeZone.getTimeZone("GMT-04:00")
test_class.modifier: private static final
test_class.original_string: private static final TimeZone A_TIMEZONE = TimeZone.getTimeZone("GMT-04:00");
test_class.type: TimeZone
test_class.var_name: A_TIMEZONE
test_class.declarator: A_TIMEZONE_STRING = "2011-07-14T19:22:49.478-04:00"
test_class.modifier: private static final
test_class.original_string: private static final String A_TIMEZONE_STRING = "2011-07-14T19:22:49.478-04:00";
test_class.type: String
test_class.var_name: A_TIMEZONE_STRING
test_class.declarator: YR_FORMAT = "%04d-01-01T00:00:00Z"
test_class.modifier: private static final
test_class.original_string: private static final String YR_FORMAT = "%04d-01-01T00:00:00Z";
test_class.type: String
test_class.var_name: YR_FORMAT
test_class.declarator: LEAP_YR_FORMAT = "%04d-02-29T00:00:00Z"
test_class.modifier: private static final
test_class.original_string: private static final String LEAP_YR_FORMAT = "%04d-02-29T00:00:00Z";
test_class.type: String
test_class.var_name: LEAP_YR_FORMAT
test_class.file: spark-spi/src/test/java/spark/spi/util/TestDateTime.java
test_class.identifier: TestDateTime
test_case.body: @Test
    public void testNonStrict() {
      Date d = new Date(A_DATE);
      nonStrict(d, "2011-7-14T23:22:49.478Z", 5); // omit leading zero
      nonStrict(d, "2011-007-14T23:22:49.478Z", 5); // extra leading zero
      nonStrict(d, "2011/07/14T23:22:49.478Z", 4); // non-standard delimiters
      nonStrict(d, "2011-07-14T19:22:49.478-04:00?", 29); // extra character at end
      nonStrict(d, "2011-07-15T23:22:49.478+24:00", 25); // too large timezone offset
      nonStrict(d, "2011-07-14T08:52:49.478-14:30", 28); // too large timezone offset
      nonStrict(d, "2011-06-44T23:22:49.478Z", 9); // wrap the days field
      nonStrict(d, "2011-07-13T47:22:49.478Z", 12); // wrap the hours field
      nonStrict(d, "2011-07-14T22:82:49.478Z", 15); // wrap the minutes field
      
      d = DateTime.parse("2011-07-14T23:22:29.478Z");
      nonStrict(d, "2011-07-14T23:21:89.478Z", 18); // wrap the seconds field
      
      d = DateTime.parse("2011-07-15T00:00:15Z");
      nonStrict(d, "2011-07-14T24:00:15Z", 18); // past midnight
    }
test_case.class_method_signature: TestDateTime.testNonStrict()
test_case.full_signature: @Test public void testNonStrict()
test_case.identifier: testNonStrict
test_case.invocations: nonStrict nonStrict nonStrict nonStrict nonStrict nonStrict nonStrict nonStrict nonStrict parse nonStrict parse nonStrict
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNonStrict()
focal_class.declarator: ZULU_TZ = TimeZone.getTimeZone("GMT+00:00")
focal_class.modifier: private static final
focal_class.original_string: private static final TimeZone ZULU_TZ = TimeZone.getTimeZone("GMT+00:00");
focal_class.type: TimeZone
focal_class.var_name: ZULU_TZ
focal_class.declarator: LOCAL_TZ = TimeZone.getDefault()
focal_class.modifier: private static final
focal_class.original_string: private static final TimeZone LOCAL_TZ = TimeZone.getDefault();
focal_class.type: TimeZone
focal_class.var_name: LOCAL_TZ
focal_class.declarator: TENS = { 1, 10, 100 }
focal_class.modifier: private static final
focal_class.original_string: private static final int[] TENS = { 1, 10, 100 };
focal_class.type: int[]
focal_class.var_name: TENS
focal_class.declarator: FIRST_MONTH = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int FIRST_MONTH = 1;
focal_class.type: int
focal_class.var_name: FIRST_MONTH
focal_class.declarator: LAST_MONTH = 12
focal_class.modifier: private static final
focal_class.original_string: private static final int LAST_MONTH = 12;
focal_class.type: int
focal_class.var_name: LAST_MONTH
focal_class.declarator: FEBRUARY = 2
focal_class.modifier: private static final
focal_class.original_string: private static final int FEBRUARY = 2;
focal_class.type: int
focal_class.var_name: FEBRUARY
focal_class.declarator: DAYS_IN_MONTH = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
focal_class.modifier: private static final
focal_class.original_string: private static final int [] DAYS_IN_MONTH = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
focal_class.type: int []
focal_class.var_name: DAYS_IN_MONTH
focal_class.declarator: MAX_YEAR = 292277023
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_YEAR = 292277023;
focal_class.type: int
focal_class.var_name: MAX_YEAR
focal_class.declarator: DAYS_IN_YEAR = 365
focal_class.modifier: private static final
focal_class.original_string: private static final int DAYS_IN_YEAR = 365;
focal_class.type: int
focal_class.var_name: DAYS_IN_YEAR
focal_class.declarator: MINS_IN_HOUR = 60
focal_class.modifier: private static final
focal_class.original_string: private static final int MINS_IN_HOUR = 60;
focal_class.type: int
focal_class.var_name: MINS_IN_HOUR
focal_class.declarator: MS_IN_SEC = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final int MS_IN_SEC = 1000;
focal_class.type: int
focal_class.var_name: MS_IN_SEC
focal_class.declarator: MS_IN_MIN = 60000
focal_class.modifier: private static final
focal_class.original_string: private static final int MS_IN_MIN = 60000;
focal_class.type: int
focal_class.var_name: MS_IN_MIN
focal_class.declarator: MS_IN_HOUR = 3600000
focal_class.modifier: private static final
focal_class.original_string: private static final int MS_IN_HOUR = 3600000;
focal_class.type: int
focal_class.var_name: MS_IN_HOUR
focal_class.declarator: MS_IN_DAY = 86400000
focal_class.modifier: private static final
focal_class.original_string: private static final int MS_IN_DAY = 86400000;
focal_class.type: int
focal_class.var_name: MS_IN_DAY
focal_class.declarator: EPOCH_OFFSET_MS = elapsedDays(1970) * MS_IN_DAY
focal_class.modifier: private static final
focal_class.original_string: private static final long EPOCH_OFFSET_MS = elapsedDays(1970) * MS_IN_DAY;
focal_class.type: long
focal_class.var_name: EPOCH_OFFSET_MS
focal_class.declarator: DATE_SEP = '-'
focal_class.modifier: private static final
focal_class.original_string: private static final char DATE_SEP = '-';
focal_class.type: char
focal_class.var_name: DATE_SEP
focal_class.declarator: DATE_TIME_SEP = 'T'
focal_class.modifier: private static final
focal_class.original_string: private static final char DATE_TIME_SEP = 'T';
focal_class.type: char
focal_class.var_name: DATE_TIME_SEP
focal_class.declarator: TIME_SEP = ':'
focal_class.modifier: private static final
focal_class.original_string: private static final char TIME_SEP = ':';
focal_class.type: char
focal_class.var_name: TIME_SEP
focal_class.file: spark-spi/src/main/java/spark/spi/util/DateTime.java
focal_class.identifier: DateTime
focal_class.class_method_signature: DateTime.format(Date d)
focal_class.full_signature: public static String format(Date d)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (Date d)
focal_class.return: String
focal_class.signature: String format(Date d)
focal_class.class_method_signature: DateTime.format(Date d, TimeZone tz)
focal_class.full_signature: public static String format(Date d, TimeZone tz)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (Date d, TimeZone tz)
focal_class.return: String
focal_class.signature: String format(Date d, TimeZone tz)
focal_class.class_method_signature: DateTime.append(StringBuilder sb, int val, int width)
focal_class.full_signature: private static void append(StringBuilder sb, int val, int width)
focal_class.identifier: append
focal_class.modifiers: private static
focal_class.parameters: (StringBuilder sb, int val, int width)
focal_class.return: void
focal_class.signature: void append(StringBuilder sb, int val, int width)
focal_class.class_method_signature: DateTime.parse(String str)
focal_class.full_signature: public static Date parse(String str)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String str)
focal_class.return: Date
focal_class.signature: Date parse(String str)
focal_class.class_method_signature: DateTime.parse(String str, boolean strict)
focal_class.full_signature: public static Date parse(String str, boolean strict)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String str, boolean strict)
focal_class.return: Date
focal_class.signature: Date parse(String str, boolean strict)
focal_class.class_method_signature: DateTime.elapsedDays(int year)
focal_class.full_signature: private static long elapsedDays(int year)
focal_class.identifier: elapsedDays
focal_class.modifiers: private static
focal_class.parameters: (int year)
focal_class.return: long
focal_class.signature: long elapsedDays(int year)
focal_class.class_method_signature: DateTime.div(int a, int b)
focal_class.full_signature: private static int div(int a, int b)
focal_class.identifier: div
focal_class.modifiers: private static
focal_class.parameters: (int a, int b)
focal_class.return: int
focal_class.signature: int div(int a, int b)
focal_class.class_method_signature: DateTime.daysInMonth(int year, int month)
focal_class.full_signature: private static int daysInMonth(int year, int month)
focal_class.identifier: daysInMonth
focal_class.modifiers: private static
focal_class.parameters: (int year, int month)
focal_class.return: int
focal_class.signature: int daysInMonth(int year, int month)
focal_class.class_method_signature: DateTime.daysInYear(int year)
focal_class.full_signature: private static int daysInYear(int year)
focal_class.identifier: daysInYear
focal_class.modifiers: private static
focal_class.parameters: (int year)
focal_class.return: int
focal_class.signature: int daysInYear(int year)
focal_class.class_method_signature: DateTime.isLeapYear(int year)
focal_class.full_signature: static boolean isLeapYear(int year)
focal_class.identifier: isLeapYear
focal_class.modifiers: static
focal_class.parameters: (int year)
focal_class.return: boolean
focal_class.signature: boolean isLeapYear(int year)
focal_class.class_method_signature: DateTime.parseMillis(Input s)
focal_class.full_signature: private static int parseMillis(Input s)
focal_class.identifier: parseMillis
focal_class.modifiers: private static
focal_class.parameters: (Input s)
focal_class.return: int
focal_class.signature: int parseMillis(Input s)
focal_class.class_method_signature: DateTime.parseTzOffsetMs(Input s, boolean strict)
focal_class.full_signature: private static Integer parseTzOffsetMs(Input s, boolean strict)
focal_class.identifier: parseTzOffsetMs
focal_class.modifiers: private static
focal_class.parameters: (Input s, boolean strict)
focal_class.return: Integer
focal_class.signature: Integer parseTzOffsetMs(Input s, boolean strict)
focal_class.class_method_signature: DateTime.parseField(String field, Input s, Character delim, int minLen, int maxLen, boolean strict)
focal_class.full_signature: private static int parseField(String field, Input s, Character delim, int minLen, int maxLen, boolean strict)
focal_class.identifier: parseField
focal_class.modifiers: private static
focal_class.parameters: (String field, Input s, Character delim, int minLen, int maxLen, boolean strict)
focal_class.return: int
focal_class.signature: int parseField(String field, Input s, Character delim, int minLen, int maxLen, boolean strict)
focal_class.class_method_signature: DateTime.parseInt(Input s)
focal_class.full_signature: private static int parseInt(Input s)
focal_class.identifier: parseInt
focal_class.modifiers: private static
focal_class.parameters: (Input s)
focal_class.return: int
focal_class.signature: int parseInt(Input s)
focal_method.body: public static Date parse(String str) {
      return parse(str, true);
    }
focal_method.class_method_signature: DateTime.parse(String str)
focal_method.full_signature: public static Date parse(String str)
focal_method.identifier: parse
focal_method.invocations: parse
focal_method.modifiers: public static
focal_method.parameters: (String str)
focal_method.return: Date
focal_method.signature: Date parse(String str)