[Mono-list] System.TimeZone

Dwivedi , Ajay Kumar AjayKumar.Dwivedi@dresdner-bank.com
Thu, 14 Feb 2002 13:04:26 -0000


hi all,
	Today night I hacked TimeZone.cs which was featured in the
Not-Implemented Classes. Its almost complete but with a few problems:

*	Implementation of TimeZone by an internal class CurrentTimeZone
requires access to system. How do we do that? I found lots of "InternalCall"
attributes in mono source but where and how to write the native code? (or
can we do without the native code now)
*	MS implementation does not assume that the Timezone may be changed
by the user while the application is running. It seems to cache the
CurrentTimeZone and use it for eternity. OTOH change in timezone during
execution may lead to unpredictable results.
*	StandardName property documentation says "Gets or sets the standard
time zone name.", but no setter methods declared.
*	MS implemetation of IsDaylightSavingTime() function seems to be
broken when the the timezone lies in the southern hemisphere. In the
southern hemisphere, DaylightTime.End comes before DaylightTime.Start during
the year.

		Where do I submit the code? I have only HTTP access to
internet :(

Regards,
ajay

--
#!!!	If anything can go wrong, _FIX_ it. (To hell with MURPHY)
							Ajay kumar Dwivedi