| OLD | NEW |
| 1 // Copyright (c) 2007-2013 International Business Machines | 1 // Copyright (c) 2007-2014 International Business Machines |
| 2 // Corporation and others. All Rights Reserved. | 2 // Corporation and others. All Rights Reserved. |
| 3 format:table(nofallback) { | 3 format:table(nofallback) { |
| 4 Info { | 4 Info { |
| 5 Description { "These are the data driven format tests" } | 5 Description { "These are the data driven format tests" } |
| 6 LongDescription { "Data for data driven format tests." } | 6 LongDescription { "Data for data driven format tests." } |
| 7 } | 7 } |
| 8 TestData { | 8 TestData { |
| 9 TestDateFormatBasic { | 9 TestDateFormatBasic { |
| 10 Info { | 10 Info { |
| 11 Description { "Test data for format and parse :" } | 11 Description { "Test data for format and parse :" } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 "GMT", | 155 "GMT", |
| 156 "DATE=RELATIVE_LONG,TIME=MEDIUM", | 156 "DATE=RELATIVE_LONG,TIME=MEDIUM", |
| 157 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=
59,SECOND=0", | 157 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=
59,SECOND=0", |
| 158 "23:59:00 Ngày 08 tháng 10 năm 2012" | 158 "23:59:00 Ngày 08 tháng 10 năm 2012" |
| 159 }, | 159 }, |
| 160 { | 160 { |
| 161 "vi@calendar=gregorian", | 161 "vi@calendar=gregorian", |
| 162 "GMT", | 162 "GMT", |
| 163 "DATE=RELATIVE_LONG,TIME=MEDIUM", | 163 "DATE=RELATIVE_LONG,TIME=MEDIUM", |
| 164 "RELATIVE_ADD:DATE=-1,HOUR_OF_DAY=17,MINUTE=0,SECOND=0", //
one day before now at specified time | 164 "RELATIVE_ADD:DATE=-1,HOUR_OF_DAY=17,MINUTE=0,SECOND=0", //
one day before now at specified time |
| 165 "17:00:00 Hôm qua" | 165 "17:00:00 hôm qua" |
| 166 }, | 166 }, |
| 167 // el combines formats using hyphen | 167 // el combines formats using hyphen |
| 168 { | 168 { |
| 169 "el@calendar=gregorian", | 169 "el@calendar=gregorian", |
| 170 "GMT", | 170 "GMT", |
| 171 "DATE=RELATIVE_LONG,TIME=MEDIUM", | 171 "DATE=RELATIVE_LONG,TIME=MEDIUM", |
| 172 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=
59,SECOND=0", | 172 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=
59,SECOND=0", |
| 173 "8 Οκτωβρίου 2012 - 11:59:00 μ.μ." | 173 "8 Οκτωβρίου 2012 - 11:59:00 μ.μ." |
| 174 }, | 174 }, |
| 175 { | 175 { |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // or RELATIVE_ADD:DATE=1 which means that the field "DATE"
will be added by +1 relative to current time, | 545 // or RELATIVE_ADD:DATE=1 which means that the field "DATE"
will be added by +1 relative to current time, |
| 546 // and any other fields present will be set explicitly. | 546 // and any other fields present will be set explicitly. |
| 547 // str: the expected unicode string | 547 // str: the expected unicode string |
| 548 | 548 |
| 549 Cases { | 549 Cases { |
| 550 { | 550 { |
| 551 "en_US@calendar=hebrew", | 551 "en_US@calendar=hebrew", |
| 552 "", | 552 "", |
| 553 "DATE=FULL,TIME=FULL", | 553 "DATE=FULL,TIME=FULL", |
| 554 "MILLIS=3076424179200000", | 554 "MILLIS=3076424179200000", |
| 555 "Friday, Heshvan 3, 103217 AM at 12:00:00 AM GMT-08:00" | 555 "Friday, 3 Heshvan 103217 at 12:00:00 AM GMT-08:00" |
| 556 }, | 556 }, |
| 557 } | 557 } |
| 558 } | 558 } |
| 559 TestMoreDateParse { | 559 TestMoreDateParse { |
| 560 Info { | 560 Info { |
| 561 Description { "Additional date parse tests (may not | 561 Description { "Additional date parse tests (may not |
| 562 round/trip to format.)" } | 562 round/trip to format.)" } |
| 563 } | 563 } |
| 564 Settings { | 564 Settings { |
| 565 // options: 'format', or 'parse'. One can be omitted if this is
a 1 way test. | 565 // options: 'format', or 'parse'. One can be omitted if this is
a 1 way test. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 584 "", | 584 "", |
| 585 "PATTERN=YYYYHHmmssEEEww", | 585 "PATTERN=YYYYHHmmssEEEww", |
| 586 "YEAR=1999,HOUR_OF_DAY=4,MINUTE=5,SECOND=6,DAY_OF_WEEK=2,WEE
K_OF_YEAR=4", | 586 "YEAR=1999,HOUR_OF_DAY=4,MINUTE=5,SECOND=6,DAY_OF_WEEK=2,WEE
K_OF_YEAR=4", |
| 587 // won't roundtrip. | 587 // won't roundtrip. |
| 588 "1998040506MON56" | 588 "1998040506MON56" |
| 589 } | 589 } |
| 590 } | 590 } |
| 591 } | 591 } |
| 592 } | 592 } |
| 593 } | 593 } |
| OLD | NEW |