Commit Graph
41 Commits
Author SHA1 Message Date
Enrico Sada fe489824b2 fix DateTimeFormatInfo era names
Calendar.Eras values start from 1 (1 = oldest)
As parameter of GetEraName or GetAbbreviatedEraName, era 0 mean current
era
2014-02-20 03:40:23 +01:00
Marek Safar 4b4308cf34 Implement DateTime::ToString format specifier for genitive month names. Fixes #4708 2012-05-15 18:34:21 +01:00
Marek Safar 9d5de96540 Update culture infos and implement missing or not implemented members 2012-05-15 09:44:22 +01:00
Marek Safar 0e72f48e81 Fixes cloning of DateTimeFormatInfo, added more arguments checks. Fixes #3279 2012-02-09 10:55:58 +00:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Zoltan Varga 9899a5f249 Change some usages of ArrayList to List<T> to avoid calls to the slow ArrayList.ToArray(Type) method. 2011-01-06 13:11:56 +01:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Zoltan Varga 490c283c1f 2008-01-06 Zoltan Varga <[email protected]>
* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
	sure the components of a read-only culture object are read-only as well.

svn path=/trunk/mcs/; revision=92326
2008-01-06 01:27:44 +00:00
Atsushi Eno fec737547e 2007-09-10 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : implemented SetAllDateTimePatterns().


svn path=/trunk/mcs/; revision=85553
2007-09-10 10:08:51 +00:00
Marek Habersack 3596509740 2007-09-06 Marek Habersack <[email protected]>
* DateTimeFormatInfo.cs: minimal implementation of
            AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
            NativeCalendar name properties.

svn path=/trunk/mcs/; revision=85423
2007-09-06 15:09:07 +00:00
Rolf Bjarne Kvinge 529ec2dda1 In .:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* corlib_test.dll.sources : added DateTimeFormatInfoTest.cs.

In Test/System.Globalization:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* DateTimeFormatInfo.cs: Added EraName.

In System.Globalization:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* GregorianCalendar.cs: Change era names from C.E./Common Era 
	to AD/A.D.
	* DateTimeFormatInfo.cs: GetEra: search the abbreviated era names
	as well for the era, and return the era, not the index of the era 
	in the array.


svn path=/trunk/mcs/; revision=78435
2007-06-01 17:00:02 +00:00
Atsushi Eno d7e3c98820 2007-06-01 Atsushi Enomoto <[email protected]>
* Calendar.cs DateTimeFormatInfo.cs : 2.0 API fixes.
	* CalendricalCalculations.cs : fixed AddMonth() and AddYears() to
	  consider that the max days in the target month (for AddYears()
	  leap year month could matter). Fixed bug #81783.

	* CalendarTest.cs : test for bug #81783 and AddYears() for leap year
	  (similar issue).


svn path=/trunk/mcs/; revision=78429
2007-06-01 16:40:20 +00:00
Atsushi Eno 29fccd5693 2007-05-17 Atsushi Enomoto <[email protected]>
* DateTime.cs : added support for 'K'.

	* DateTimeFormatInfo.cs : added roundtrip pattern (only in 2.0).

	* DateTimeTest.cs : test for 'o' and 'K'.


svn path=/trunk/mcs/; revision=77579
2007-05-17 16:47:59 +00:00
Alp Toker 5e2b237fb8 2007-04-17 Alp Toker <[email protected]>
* DateTimeFormatInfo.cs: Provide set accessor for MonthNames.


svn path=/trunk/mcs/; revision=75799
2007-04-17 00:59:26 +00:00
Chris Toshok e0a3893721 2006-01-24 Chris Toshok <[email protected]>
[ these fix nunit built with MS .net 2.0, running on mono.  nunit
	apparently stores all manner of things in its resources ]
	
	* NumberFormatInfo.cs: add unused nativeDigits and
	digitSubstitution fields that MS serializes.

	* DateTimeFormatInfo.cs: serialization fixes.  MS apparently
	stores (and serializes) a couple of fields as ints, but exposes
	them to programmers as Enum's.
	
	* CompareInfo.cs: add unused m_name field that MS serializes.

	* GregorianCalendar.cs: add a couple of unused fields that MS serializes.


svn path=/trunk/mcs/; revision=71620
2007-01-24 19:27:56 +00:00
Miguel de Icaza 7a0f1b0969 2007-01-12 Miguel de Icaza <[email protected]>
* DateTimeFormatInfo.cs: Add support for shortest day names.
	Notice that there is no support in the runtime to actually load
	this information from any place.   So they are all english values.

svn path=/trunk/mcs/; revision=70945
2007-01-13 03:52:24 +00:00
Igor Zelmanovich 8f94e29ef9 2006-12-17 Igor Zelmanovich <[email protected]>
* DateTimeFormatInfo.cs : added missing properties and methods.

svn path=/trunk/mcs/; revision=69605
2006-12-17 17:03:36 +00:00
Atsushi Eno 2c1ce21b2c 2006-12-01 Atsushi Enomoto <[email protected]>
* DateTime.cs :
	  use new internal clone-less DateTimeFormatInfo members.

	* DateTimeFormatInfo.cs : added some internal clone-less versions of
	  string[] properties and methods.


svn path=/trunk/mcs/; revision=68812
2006-12-01 06:52:54 +00:00
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Peter Dennis Bartok 0c2f1dff71 2006-03-07 Peter Dennis Bartok <[email protected]>
* Environment.cs: Bumped corlib version to 48 (due to r57532)

2006-03-07  Peter Dennis Bartok  <[email protected]>

	* DateTimeFormatInfo.cs: Restored original field order to allow
	  some automatic locale fu to happen (mono unmanaged code relies 
	  on the field order to fill out DateTimeFormatInfo)


svn path=/trunk/mcs/; revision=57679
2006-03-07 23:29:59 +00:00
Peter Dennis Bartok eb1c36e677 2006-03-02 Peter Dennis Bartok <[email protected]>
* DateTimeFormatInfo.cs: Switched (where possible) our internal
	  field names to match MS names. Added fields that MS has and we
	  don't. Fixes serialization issues with MS.
	* CultureInfo.cs, Calendar.cs, TextInfo.cs, 
	  GregorianCalenda.cs: Hiding internal attributes from serialization


svn path=/trunk/mcs/; revision=57532
2006-03-03 05:47:10 +00:00
Ben Maurer 8684c72d03 In System:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTime.cs: Speed up when parsing date time objects by not
	duplicating cultureinfo arrays.

In Test/System.Globalization:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTimeFormatInfoTest.cs: New test to make sure we do not
	return the same array from GetAllDateTimePatterns.

In System.Globalization:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTimeFormatInfo.cs: Speed up GetAllDateTimePatterns by
	caching the result and then cloning it.


svn path=/trunk/mcs/; revision=51696
2005-10-14 04:32:02 +00:00
Ben Maurer 65f748244d 2005-10-10 Ben Maurer <[email protected]>
* DateTimeFormatInfo.cs: Rather than having a + ' ' + b, have a +
	" " + b. This lets us avoid 1) boxing the char and 2) calling
	char.ToString. Results in a fairly substantial savings on
	DateTime.Parse.


svn path=/trunk/mcs/; revision=51532
2005-10-10 21:28:56 +00:00
Atsushi Eno 1392546751 2005-08-12 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : GetAbbreviatedEraNames() and GetEra().


svn path=/trunk/mcs/; revision=48313
2005-08-12 04:47:52 +00:00
Atsushi Eno 36190bda16 2005-08-11 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : lazy load OptionalCalendars (and always non-null).
	* DateTimeFormatInfo.cs : GetEraNames() should work.

	* CultureInfoTest.cs : added OptionalCalendars().
	* CompareInfoTest.cs : added possible bug test for checkedFlags 
	  optimization.


svn path=/trunk/mcs/; revision=48297
2005-08-11 18:51:01 +00:00
Atsushi Eno 1609b697b0 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : check if pattern array is empty or not. Now
	  icall fills them as possible empty list.

svn path=/trunk/mcs/; revision=29737
2004-06-17 04:29:50 +00:00
Gert Driesen 8fe65ae3dc * DateTimeFormatInfo.cs: added TODO for serialization
* GregorianCalendar.cs:: added TODO for serialization
* HebrewCalendar.cs: added TODO for serialization
* HijriCalendar.cs: added TODO for serialization
* JapaneseCalendar.cs: added TODO for serialization
* JulianCalendar.cs: added TODO for serialization
* KoreanCalendar.cs: added TODO for serialization
* TaiwanCalendar.cs: added TODO for serialization
* ThaiBuddhistCalendar.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29624
2004-06-15 17:56:56 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Atsushi Eno ee9709c1c7 2004-05-28 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : In fact GetAllDateTimePatterns() returns
	  non-unique results.  Just reordered return values looking at MS
	  invariant behavior.

svn path=/trunk/mcs/; revision=28342
2004-05-28 11:44:02 +00:00
Atsushi Eno 4277238022 2004-05-27 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : 'U' is in fact the same as 'F' for pattern
	  strings. Thanks to kangaroo for the hint.

svn path=/trunk/mcs/; revision=28296
2004-05-27 17:54:59 +00:00
Atsushi Eno 48e2ca895c 2004-05-27 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : Fixed longtimes and shorttimes (exchanged).

svn path=/trunk/mcs/; revision=28287
2004-05-27 16:59:14 +00:00
Atsushi Eno 30e4b3f86b 2004-05-27 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : Added some string[] fields for
	  GetAllDateTimePatterns(char). The fields will be filled in metadata
	  and culture info table. Added improved patterns for
	  GetAllDateTimePatterns() (right now works only for invariant).
	* CultureInfo.cs : Use InvariantInfo for InvariantCulture.

svn path=/trunk/mcs/; revision=28282
2004-05-27 16:23:05 +00:00
Atsushi Eno d7a5613ab0 2004-05-26 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs :
	  hack implementation for GetAllDateTimePatterns().

svn path=/trunk/mcs/; revision=28182
2004-05-26 18:45:56 +00:00
Pedro Martínez Juliá 2b16a49b3a 2003-11-05 Pedro Mart�nez Juli� <[email protected]>
* DateTimeFormatInfo.cs: Hack an era for US culture. We must look
    for other ways to get the ERA string.

svn path=/trunk/mcs/; revision=19638
2003-11-05 06:00:35 +00:00
Dick Porter 49f6ddf3f2 2003-10-09 Dick Porter <[email protected]>
* CultureInfo.cs: Implemented, with internal calls to ICU apart
	from the Invariant culture.

	* SortKey.cs:
	* CompareInfo.cs: Implemented

	* DateTimeFormatInfo.cs: Fixed the worst of the formatting,
	construct default FullDateTimePattern on the fly.

svn path=/trunk/mcs/; revision=18820
2003-10-09 21:09:57 +00:00
Duncan Mak a2b66b251f * DateTimeFormatInfo.cs: theInvariantDateTimeFormatInfo should not
be public.

* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.

* SignatureHelper.cs: This class does not have the
SerializableAttribute.

* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.

* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.

* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.

* Guid.cs (NewGuid): Remove MonoTODOAttribute.

* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.

* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.

svn path=/trunk/mcs/; revision=16594
2003-07-24 03:28:43 +00:00
Nick Drochak 731d82c5e0 2002-06-12 Nick Drochak <[email protected]>
* DateTimeFormatInfo.cs: Reformat.

svn path=/trunk/mcs/; revision=5247
2002-06-12 11:02:53 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Daniel Stodden 76baf9fa4e - CultureInfo implements IFormatProvider
- DateTime/NumberformatInfo _FomatInfo ecma-lamespec corrections
- integer type cleanup accordingly

svn path=/trunk/mcs/; revision=2557
2002-02-21 06:56:17 +00:00
Martin Weindel 83c8c0cc13 * added DateTimeFormatInfo.cs
* fixed minor bug in NumberFormatInfo.Clone() with readonly flag

svn path=/trunk/mcs/; revision=1253
2001-11-04 13:00:36 +00:00