/*
*******************************************************************************
- * Copyright (C) 2001-2010, International Business Machines Corporation and *
- * others. All Rights Reserved. *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and
+ * others. All Rights Reserved.
*******************************************************************************
*/
}
}
}
-
- //Missing digit in millisecone format in SimpleDateFormat
+
+ // Missing digit in millisecond format in SimpleDateFormat
public void Test4148168() {
- Date d = new Date(1002705212906l);
+ Date d = new Date(1002705212906L);
String[] ISOPattern = {
"''yyyy-MM-dd-hh.mm.ss.S''", "''yyyy-MM-dd-hh.mm.ss.SS''",
"''yyyy-MM-dd-hh.mm.ss.SSS''", "''yyyy-MM-dd-hh.mm.ss.SSSS''",
//pattern "s.S, parse '1ms'"
public void Test4253490() {
- Date d = new Date(1002705212231l);
-
+ Date d = new Date(1002705212231L);
+
String[] ISOPattern = {
"''yyyy-MM-dd-hh.mm.ss.S''",
"''yyyy-MM-dd-hh.mm.ss.SS''",
}*/
public void Test4468663() {
- Date d =new Date(-93716671115767l);
+ Date d =new Date(-93716671115767L);
String origin_d = d.toString();
String str;
final String pattern = new String("EEEE, MMMM d, yyyy");
public void TestDateFormatZone061() {
Date date;
DateFormat formatter;
- date = new Date(859248000000l);
+ date = new Date(859248000000L);
logln("Date 1997/3/25 00:00 GMT: " + date);
formatter = new SimpleDateFormat("dd-MMM-yyyyy HH:mm", Locale.UK);
formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
* Test the formatting of dates in different locales.
*/
public void TestLocaleDateFormat() {
-
- Date testDate = new Date(874306800000l); //Mon Sep 15 00:00:00 PDT 1997
+ Date testDate = new Date(874306800000L); //Mon Sep 15 00:00:00 PDT 1997
DateFormat dfFrench = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.FRENCH);
DateFormat dfUS = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
//Set TimeZone = PDT
* Test the formatting of dates with the 'NONE' keyword.
*/
public void TestDateFormatNone() {
-
- Date testDate = new Date(874306800000l); //Mon Sep 15 00:00:00 PDT 1997
+ Date testDate = new Date(874306800000L); //Mon Sep 15 00:00:00 PDT 1997
DateFormat dfFrench = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.NONE, Locale.FRENCH);
//Set TimeZone = PDT
TimeZone tz = TimeZone.getTimeZone("PST");