Beispiel #1
0
        // All operations must be performed on the UTC value and then converted back to local
        // time - see http://msdn.microsoft.com/library/en-us/dndotnet/html/datetimecode.asp

        public DateTime AddYears(int years)
        {
            DateTime result = new DateTime(Universal.AddYears(years), m_nanosecond, Type.TimeZone.UTC, true);

            return(result.ToTimeZone(TimeZone));
        }