예제 #1
0
        //internal method to return a collection of Time Zones
        public TimeZoneCustom[] GetTimeZonesInfo(bool CaterForDST)
        {
            List <TimeZoneCustom> timeZones = new List <TimeZoneCustom>();

            DateTime currentTimeUTC = BaseTime.ToUniversalTime();

            //get a list of all the timezone definitions
            foreach (TimeZoneInfo tzi in TimeZoneInfo.GetSystemTimeZones())
            {
                TimeZoneCustom tz = new TimeZoneCustom(BaseTime, tzi, CaterForDST);
                timeZones.Add(tz);
            }
            return(timeZones.ToArray());
        }