[Mono-dev] PATCH: Implement System.DateTime.IsDaylightSavingTime
Seo Sanghyeon
tinuviel at sparcs.kaist.ac.kr
Tue Apr 11 03:30:42 EDT 2006
Hi,
Attached patch implements System.DateTime.IsDaylightSavingTime by
delegating to System.TimeZone.IsDaylightSavingTime.
Does this look okay?
Seo Sanghyeon
-------------- next part --------------
Index: class/corlib/System/DateTime.cs
===================================================================
--- class/corlib/System/DateTime.cs (revision 59341)
+++ class/corlib/System/DateTime.cs (working copy)
@@ -580,7 +580,7 @@
public bool IsDaylightSavingTime () {
if (kind == DateTimeKind.Utc)
return false;
- throw new NotImplementedException ();
+ return TimeZone.CurrentTimeZone.IsDaylightSavingTime (this);
}
public int CompareTo (DateTime value)
More information about the Mono-devel-list
mailing list