/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using NodaTime; namespace QuantConnect { /// /// Provides access to common time zones /// public static class TimeZones { /// /// Gets the Universal Coordinated time zone. /// public static readonly DateTimeZone Utc = DateTimeZone.Utc; /// /// Gets the time zone for New York City, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone NewYork = DateTimeZoneProviders.Tzdb["America/New_York"]; /// /// Get the Eastern Standard Time (EST) WITHOUT daylight savings, this is a constant -5 hour offset /// public static readonly DateTimeZone EasternStandard = DateTimeZoneProviders.Tzdb["UTC-05"]; /// /// Gets the time zone for London, England. This is a daylight savings time zone. /// public static readonly DateTimeZone London = DateTimeZoneProviders.Tzdb["Europe/London"]; /// /// Gets the time zone for Hong Kong, China. /// public static readonly DateTimeZone HongKong = DateTimeZoneProviders.Tzdb["Asia/Hong_Kong"]; /// /// Gets the time zone for Tokyo, Japan. /// public static readonly DateTimeZone Tokyo = DateTimeZoneProviders.Tzdb["Asia/Tokyo"]; /// /// Gets the time zone for Rome, Italy. This is a daylight savings time zone. /// public static readonly DateTimeZone Rome = DateTimeZoneProviders.Tzdb["Europe/Rome"]; /// /// Gets the time zone for Sydney, Australia. This is a daylight savings time zone. /// public static readonly DateTimeZone Sydney = DateTimeZoneProviders.Tzdb["Australia/Sydney"]; /// /// Gets the time zone for Vancouver, Canada. /// public static readonly DateTimeZone Vancouver = DateTimeZoneProviders.Tzdb["America/Vancouver"]; /// /// Gets the time zone for Toronto, Canada. This is a daylight savings time zone. /// public static readonly DateTimeZone Toronto = DateTimeZoneProviders.Tzdb["America/Toronto"]; /// /// Gets the time zone for Chicago, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Chicago = DateTimeZoneProviders.Tzdb["America/Chicago"]; /// /// Gets the time zone for Los Angeles, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone LosAngeles = DateTimeZoneProviders.Tzdb["America/Los_Angeles"]; /// /// Gets the time zone for Phoenix, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Phoenix = DateTimeZoneProviders.Tzdb["America/Phoenix"]; /// /// Gets the time zone for Auckland, New Zealand. This is a daylight savings time zone. /// public static readonly DateTimeZone Auckland = DateTimeZoneProviders.Tzdb["Pacific/Auckland"]; /// /// Gets the time zone for Moscow, Russia. /// public static readonly DateTimeZone Moscow = DateTimeZoneProviders.Tzdb["Europe/Moscow"]; /// /// Gets the time zone for Madrid, Span. This is a daylight savings time zone. /// public static readonly DateTimeZone Madrid = DateTimeZoneProviders.Tzdb["Europe/Madrid"]; /// /// Gets the time zone for Buenos Aires, Argentia. /// public static readonly DateTimeZone BuenosAires = DateTimeZoneProviders.Tzdb["America/Argentina/Buenos_Aires"]; /// /// Gets the time zone for Brisbane, Australia. /// public static readonly DateTimeZone Brisbane = DateTimeZoneProviders.Tzdb["Australia/Brisbane"]; /// /// Gets the time zone for Sao Paulo, Brazil. This is a daylight savings time zone. /// public static readonly DateTimeZone SaoPaulo = DateTimeZoneProviders.Tzdb["America/Sao_Paulo"]; /// /// Gets the time zone for Cairo, Egypt. /// public static readonly DateTimeZone Cairo = DateTimeZoneProviders.Tzdb["Africa/Cairo"]; /// /// Gets the time zone for Johannesburg, South Africa. /// public static readonly DateTimeZone Johannesburg = DateTimeZoneProviders.Tzdb["Africa/Johannesburg"]; /// /// Gets the time zone for Anchorage, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Anchorage = DateTimeZoneProviders.Tzdb["America/Anchorage"]; /// /// Gets the time zone for Denver, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Denver = DateTimeZoneProviders.Tzdb["America/Denver"]; /// /// Gets the time zone for Detroit, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Detroit = DateTimeZoneProviders.Tzdb["America/Detroit"]; /// /// Gets the time zone for Mexico City, Mexico. This is a daylight savings time zone. /// public static readonly DateTimeZone MexicoCity = DateTimeZoneProviders.Tzdb["America/Mexico_City"]; /// /// Gets the time zone for Jerusalem, Israel. This is a daylight savings time zone. /// public static readonly DateTimeZone Jerusalem = DateTimeZoneProviders.Tzdb["Asia/Jerusalem"]; /// /// Gets the time zone for Shanghai, China. /// public static readonly DateTimeZone Shanghai = DateTimeZoneProviders.Tzdb["Asia/Shanghai"]; /// /// Gets the time zone for Melbourne, Australia. This is a daylight savings time zone. /// public static readonly DateTimeZone Melbourne = DateTimeZoneProviders.Tzdb["Australia/Melbourne"]; /// /// Gets the time zone for Amsterdam, Netherlands. This is a daylight savings time zone. /// public static readonly DateTimeZone Amsterdam = DateTimeZoneProviders.Tzdb["Europe/Amsterdam"]; /// /// Gets the time zone for Athens, Greece. This is a daylight savings time zone. /// public static readonly DateTimeZone Athens = DateTimeZoneProviders.Tzdb["Europe/Athens"]; /// /// Gets the time zone for Berlin, Germany. This is a daylight savings time zone. /// public static readonly DateTimeZone Berlin = DateTimeZoneProviders.Tzdb["Europe/Berlin"]; /// /// Gets the time zone for Bucharest, Romania. This is a daylight savings time zone. /// public static readonly DateTimeZone Bucharest = DateTimeZoneProviders.Tzdb["Europe/Bucharest"]; /// /// Gets the time zone for Dublin, Ireland. This is a daylight savings time zone. /// public static readonly DateTimeZone Dublin = DateTimeZoneProviders.Tzdb["Europe/Dublin"]; /// /// Gets the time zone for Helsinki, Finland. This is a daylight savings time zone. /// public static readonly DateTimeZone Helsinki = DateTimeZoneProviders.Tzdb["Europe/Helsinki"]; /// /// Gets the time zone for Istanbul, Turkey. This is a daylight savings time zone. /// public static readonly DateTimeZone Istanbul = DateTimeZoneProviders.Tzdb["Europe/Istanbul"]; /// /// Gets the time zone for Minsk, Belarus. /// public static readonly DateTimeZone Minsk = DateTimeZoneProviders.Tzdb["Europe/Minsk"]; /// /// Gets the time zone for Paris, France. This is a daylight savings time zone. /// public static readonly DateTimeZone Paris = DateTimeZoneProviders.Tzdb["Europe/Paris"]; /// /// Gets the time zone for Zurich, Switzerland. This is a daylight savings time zone. /// public static readonly DateTimeZone Zurich = DateTimeZoneProviders.Tzdb["Europe/Zurich"]; /// /// Gets the time zone for Honolulu, USA. This is a daylight savings time zone. /// public static readonly DateTimeZone Honolulu = DateTimeZoneProviders.Tzdb["Pacific/Honolulu"]; /// /// Gets the time zone for Kolkata, India. /// public static readonly DateTimeZone Kolkata = DateTimeZoneProviders.Tzdb["Asia/Kolkata"]; } }