Commit Graph

70 Commits

Author SHA1 Message Date
Frank Tang
863582c2a4 ICU-20465 Calendar/DateFormat listen to tz extension
See #1176
2020-08-04 13:33:03 -07:00
Caio Lima
873e2db780 ICU-20741 Adding tests for C/C++ API into DateFormatTests 2019-11-22 15:43:27 -08:00
Frank Tang
eeb759063b ICU-20799 delete calendarToAdopt upon error
ICU-20799 add unit tests

ICU-20799 initialize error and add comments.
2019-08-29 15:49:37 -07:00
Yoshito Umaoka
cbc23942a7 ICU-13744 Fixed an ICU4J date parsing regression issue causing IndexOutOfBoundsException when pattern has more fields than input date string.
X-SVN-Rev: 41383
2018-05-16 18:59:22 +00:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Peter Edberg
36b1760b83 ICU-12056 C, Add format and toPattern tests for standard date fmts with number system overrides
X-SVN-Rev: 38420
2016-02-28 07:23:23 +00:00
kazède king
f713c0687c ICU-11872 new time formatting pattern chars b/B
Merging from the branch.

X-SVN-Rev: 38370
2016-02-25 19:51:53 +00:00
Fredrik Roubert
25f9110090 ICU-11985 Handle 'j' and 'J' in date time pattern skeletons.
R=mark.edward.davis@gmail.com, markus.icu@gmail.com, pedberg@apple.com

Review URL: https://codereview.appspot.com/279780043 .

X-SVN-Rev: 38089
2015-11-18 12:29:17 +00:00
Fredrik Roubert
17b8600e8e ICU-11018 Support CLDR time separator (ICU4C)
This change will treat the ':' character in patterns as a symbol
(instead of as a literal) and if the Locale defines timeSeparator then
use that character instead when formatting and accept both when parsing.

It will also define the '.' as an alternate time separator, that will be
accepted when parsing in lenient mode.

This is one character more strict than before, when in lenient mode also
the '-' was accepted as time separator instead of ':'.

R=rocketman@google.com

Review URL: https://codereview.appspot.com/180610043

X-SVN-Rev: 36897
2014-12-19 07:19:41 +00:00
Travis Keep
a6bc072149 ICU-11401 Reduce cache keyspace by caching only the components of DateFormat by locale rather than actual DateFormat objects.
X-SVN-Rev: 36811
2014-12-05 18:15:35 +00:00
Travis Keep
4860c7e5b7 ICU-11139 Add JAVA DateFormat factory methods to C++
X-SVN-Rev: 36745
2014-11-18 00:43:49 +00:00
Tom Zhang
26063a3454 ICU-10320 API for getting/setting number format override in date formatting
X-SVN-Rev: 36097
2014-07-29 18:42:07 +00:00
Yoshito Umaoka
1d90a2e031 ICU-10816 Added a test case of DateFormat parse leniency setter/getter APIs.
X-SVN-Rev: 35627
2014-04-14 19:58:40 +00:00
Scott Russell
eb0fd12224 ICU-10336 add leniency controls for lenient like behavior
X-SVN-Rev: 35319
2014-03-04 14:40:36 +00:00
Scott Russell
e22e451cd8 ICU-10261 give DateFormat more granular leniency control (updated tests didn't get committed)
X-SVN-Rev: 34328
2013-09-16 13:43:10 +00:00
Peter Edberg
54098be451 ICU-9497 Add support for short weekday names: format, parse, get/set symbols (C)
X-SVN-Rev: 33047
2013-01-14 04:48:51 +00:00
Markus Scherer
af439c67de ICU-9789 lenient date/time parsing: accept missing or added trailing dot after non-numeric fields; refactor isNumeric() logic
X-SVN-Rev: 32962
2012-12-14 06:35:11 +00:00
Markus Scherer
7239810394 ICU-9631 add, fix, deprecate DateFormat skeleton constants, parallel to Java ticket #9375
X-SVN-Rev: 32572
2012-10-09 04:50:45 +00:00
Peter Edberg
00b9ba863a ICU-9256 For he@calendar=hebrew, offset the years within the current millenium down to 1-999
X-SVN-Rev: 32236
2012-08-27 05:58:17 +00:00
Peter Edberg
733a433be7 ICU-9110 Commit the C tests too
X-SVN-Rev: 31467
2012-02-21 09:19:57 +00:00
Peter Edberg
6dbcc24060 ICU-8958 integrate changes from cldrbug 4130:; add monthPatterns support to
DateFormatSymbols, use it to format leap months; ignore pattern char 'l'; add tests.

X-SVN-Rev: 31039
2011-12-06 08:00:44 +00:00
Yoshito Umaoka
b990fed869 ICU-8766 Added a test case equivalent to ICU4J for testing parse position in date format parse with time zone pattern.
X-SVN-Rev: 30515
2011-08-16 16:36:51 +00:00
Yoshito Umaoka
3c22c67825 ICU-8675 Simple test case for checking stand alone GMT parsing multiple times.
X-SVN-Rev: 30282
2011-07-06 16:42:25 +00:00
Peter Edberg
332037ef5b ICU-6109 & #4942,#3579: Merge changes for lenient number & date parsing from branches/eric/lenient_number_parsing (manually!)
X-SVN-Rev: 30018
2011-05-04 12:23:42 +00:00
John Emmons
1974269a6f ICU-7724 Merge support for non-contiguous numbering systems
X-SVN-Rev: 28466
2010-08-13 21:23:00 +00:00
Jason Spieth
cfb6018a50 ICU-7357 Allow date format parsing to handle ISO format. Properly parse the era and allow negative years to derive the era.
X-SVN-Rev: 27904
2010-04-06 18:04:27 +00:00
Jason Spieth
79a1c517b9 ICU-4917 Remove code from trunk to be added to branch.
X-SVN-Rev: 27779
2010-03-04 21:15:43 +00:00
Jason Spieth
99fe830c00 ICU-4917 Improve ISO format handling of era and negative years
X-SVN-Rev: 27778
2010-03-04 16:55:29 +00:00
Doug Felt
52c23e0a47 ICU-6192 add support for getting field positions to NumberFormat and DateFormat
X-SVN-Rev: 27093
2009-12-17 22:15:20 +00:00
Yoshito Umaoka
df41de6e90 ICU-6880 Fixed localized GMT format parse problem caused by the offset hour format without delimitter characters.
X-SVN-Rev: 25929
2009-04-28 06:20:32 +00:00
Yoshito Umaoka
be66679036 ICU-6315 Parsing generic GMT format with UT and standalone GMT/UT/UTC support for ICU4C.
X-SVN-Rev: 25650
2009-03-25 05:02:30 +00:00
Jason Spieth
99ca0b9eac ICU-6726 Changes to dateTimePatterns lengths and default glue pattern usage
X-SVN-Rev: 25592
2009-03-16 15:23:11 +00:00
Jason Spieth
0875075b89 ICU-6338 Handle integer suffix when parsing numeric date field - testcase
X-SVN-Rev: 25346
2009-01-29 18:35:02 +00:00
Yoshito Umaoka
f682a39582 ICU-6420 Fixed calendar/date symbols mismatch problem for C.
X-SVN-Rev: 25309
2009-01-23 23:15:42 +00:00
John Emmons
5841b2c731 ICU-5910 Add test for TestTimeZoneDisplayName
X-SVN-Rev: 22638
2007-09-06 21:22:41 +00:00
George Rhoten
fc9cf24a18 ICU-5741 Test and fix cloning of Win32NumberFormat and Win32DateFormat
X-SVN-Rev: 21708
2007-06-12 05:20:11 +00:00
George Rhoten
b1596178bc ICU-5410 Improve code coverage.
X-SVN-Rev: 21707
2007-06-12 01:36:50 +00:00
Steven R. Loomis
d48f7af250 ICU-2895 Relative Dates
X-SVN-Rev: 21381
2007-04-09 22:29:57 +00:00
Vladimir Weinstein
7b86e2823b ICU-5625 Fix parsing of number only timezone offsets.
X-SVN-Rev: 21147
2007-03-02 06:57:40 +00:00
George Rhoten
a866e44617 ICU-5426 Reduce VM size and reduce exported data on Unix machines.
X-SVN-Rev: 20466
2006-10-01 06:45:25 +00:00
Eric Mader
1fcd76ec02 ICU-5241 Initial checkin of Quarters, narrow month, day names.
X-SVN-Rev: 19762
2006-06-26 17:51:25 +00:00
Eric Mader
ed5ad9b463 ICU-4152 Initial checkin of tests. Aslo bug fixes for bugs that the tests found!
X-SVN-Rev: 19016
2006-01-23 23:25:00 +00:00
Andy Heninger
959dd53756 ICU-4741 fix compiler error on Linux
X-SVN-Rev: 18485
2005-09-01 18:07:52 +00:00
Ram Viswanadha
f9555fcca8 ICU-4741 changes for zoneStrings access
X-SVN-Rev: 18474
2005-08-26 21:55:55 +00:00
Eric Mader
5dc3d7c9d4 ICU-4561 Update copyright notices for ICU 3.4
X-SVN-Rev: 17822
2005-06-07 23:38:09 +00:00
Doug Felt
50c3a2554b ICU-646 wall time support in icu
X-SVN-Rev: 17801
2005-06-04 03:08:25 +00:00
Alan Liu
e43b0d926a ICU-3815 add test for case-folding match
X-SVN-Rev: 15765
2004-06-07 21:59:41 +00:00