Lean  $LEAN_TAG$
TimeZones.cs
1 /*
2  * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3  * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14 */
15 
16 using NodaTime;
17 
18 namespace QuantConnect
19 {
20  /// <summary>
21  /// Provides access to common time zones
22  /// </summary>
23  public static class TimeZones
24  {
25  /// <summary>
26  /// Gets the Universal Coordinated time zone.
27  /// </summary>
28  public static readonly DateTimeZone Utc = DateTimeZone.Utc;
29 
30  /// <summary>
31  /// Gets the time zone for New York City, USA. This is a daylight savings time zone.
32  /// </summary>
33  public static readonly DateTimeZone NewYork = DateTimeZoneProviders.Tzdb["America/New_York"];
34 
35  /// <summary>
36  /// Get the Eastern Standard Time (EST) WITHOUT daylight savings, this is a constant -5 hour offset
37  /// </summary>
38  public static readonly DateTimeZone EasternStandard = DateTimeZoneProviders.Tzdb["UTC-05"];
39 
40  /// <summary>
41  /// Gets the time zone for London, England. This is a daylight savings time zone.
42  /// </summary>
43  public static readonly DateTimeZone London = DateTimeZoneProviders.Tzdb["Europe/London"];
44 
45  /// <summary>
46  /// Gets the time zone for Hong Kong, China.
47  /// </summary>
48  public static readonly DateTimeZone HongKong = DateTimeZoneProviders.Tzdb["Asia/Hong_Kong"];
49 
50  /// <summary>
51  /// Gets the time zone for Tokyo, Japan.
52  /// </summary>
53  public static readonly DateTimeZone Tokyo = DateTimeZoneProviders.Tzdb["Asia/Tokyo"];
54 
55  /// <summary>
56  /// Gets the time zone for Rome, Italy. This is a daylight savings time zone.
57  /// </summary>
58  public static readonly DateTimeZone Rome = DateTimeZoneProviders.Tzdb["Europe/Rome"];
59 
60  /// <summary>
61  /// Gets the time zone for Sydney, Australia. This is a daylight savings time zone.
62  /// </summary>
63  public static readonly DateTimeZone Sydney = DateTimeZoneProviders.Tzdb["Australia/Sydney"];
64 
65  /// <summary>
66  /// Gets the time zone for Vancouver, Canada.
67  /// </summary>
68  public static readonly DateTimeZone Vancouver = DateTimeZoneProviders.Tzdb["America/Vancouver"];
69 
70  /// <summary>
71  /// Gets the time zone for Toronto, Canada. This is a daylight savings time zone.
72  /// </summary>
73  public static readonly DateTimeZone Toronto = DateTimeZoneProviders.Tzdb["America/Toronto"];
74 
75  /// <summary>
76  /// Gets the time zone for Chicago, USA. This is a daylight savings time zone.
77  /// </summary>
78  public static readonly DateTimeZone Chicago = DateTimeZoneProviders.Tzdb["America/Chicago"];
79 
80  /// <summary>
81  /// Gets the time zone for Los Angeles, USA. This is a daylight savings time zone.
82  /// </summary>
83  public static readonly DateTimeZone LosAngeles = DateTimeZoneProviders.Tzdb["America/Los_Angeles"];
84 
85  /// <summary>
86  /// Gets the time zone for Phoenix, USA. This is a daylight savings time zone.
87  /// </summary>
88  public static readonly DateTimeZone Phoenix = DateTimeZoneProviders.Tzdb["America/Phoenix"];
89 
90  /// <summary>
91  /// Gets the time zone for Auckland, New Zealand. This is a daylight savings time zone.
92  /// </summary>
93  public static readonly DateTimeZone Auckland = DateTimeZoneProviders.Tzdb["Pacific/Auckland"];
94 
95  /// <summary>
96  /// Gets the time zone for Moscow, Russia.
97  /// </summary>
98  public static readonly DateTimeZone Moscow = DateTimeZoneProviders.Tzdb["Europe/Moscow"];
99 
100  /// <summary>
101  /// Gets the time zone for Madrid, Span. This is a daylight savings time zone.
102  /// </summary>
103  public static readonly DateTimeZone Madrid = DateTimeZoneProviders.Tzdb["Europe/Madrid"];
104 
105  /// <summary>
106  /// Gets the time zone for Buenos Aires, Argentia.
107  /// </summary>
108  public static readonly DateTimeZone BuenosAires = DateTimeZoneProviders.Tzdb["America/Argentina/Buenos_Aires"];
109 
110  /// <summary>
111  /// Gets the time zone for Brisbane, Australia.
112  /// </summary>
113  public static readonly DateTimeZone Brisbane = DateTimeZoneProviders.Tzdb["Australia/Brisbane"];
114 
115  /// <summary>
116  /// Gets the time zone for Sao Paulo, Brazil. This is a daylight savings time zone.
117  /// </summary>
118  public static readonly DateTimeZone SaoPaulo = DateTimeZoneProviders.Tzdb["America/Sao_Paulo"];
119 
120  /// <summary>
121  /// Gets the time zone for Cairo, Egypt.
122  /// </summary>
123  public static readonly DateTimeZone Cairo = DateTimeZoneProviders.Tzdb["Africa/Cairo"];
124 
125  /// <summary>
126  /// Gets the time zone for Johannesburg, South Africa.
127  /// </summary>
128  public static readonly DateTimeZone Johannesburg = DateTimeZoneProviders.Tzdb["Africa/Johannesburg"];
129 
130  /// <summary>
131  /// Gets the time zone for Anchorage, USA. This is a daylight savings time zone.
132  /// </summary>
133  public static readonly DateTimeZone Anchorage = DateTimeZoneProviders.Tzdb["America/Anchorage"];
134 
135  /// <summary>
136  /// Gets the time zone for Denver, USA. This is a daylight savings time zone.
137  /// </summary>
138  public static readonly DateTimeZone Denver = DateTimeZoneProviders.Tzdb["America/Denver"];
139 
140  /// <summary>
141  /// Gets the time zone for Detroit, USA. This is a daylight savings time zone.
142  /// </summary>
143  public static readonly DateTimeZone Detroit = DateTimeZoneProviders.Tzdb["America/Detroit"];
144 
145  /// <summary>
146  /// Gets the time zone for Mexico City, Mexico. This is a daylight savings time zone.
147  /// </summary>
148  public static readonly DateTimeZone MexicoCity = DateTimeZoneProviders.Tzdb["America/Mexico_City"];
149 
150  /// <summary>
151  /// Gets the time zone for Jerusalem, Israel. This is a daylight savings time zone.
152  /// </summary>
153  public static readonly DateTimeZone Jerusalem = DateTimeZoneProviders.Tzdb["Asia/Jerusalem"];
154 
155  /// <summary>
156  /// Gets the time zone for Shanghai, China.
157  /// </summary>
158  public static readonly DateTimeZone Shanghai = DateTimeZoneProviders.Tzdb["Asia/Shanghai"];
159 
160  /// <summary>
161  /// Gets the time zone for Melbourne, Australia. This is a daylight savings time zone.
162  /// </summary>
163  public static readonly DateTimeZone Melbourne = DateTimeZoneProviders.Tzdb["Australia/Melbourne"];
164 
165  /// <summary>
166  /// Gets the time zone for Amsterdam, Netherlands. This is a daylight savings time zone.
167  /// </summary>
168  public static readonly DateTimeZone Amsterdam = DateTimeZoneProviders.Tzdb["Europe/Amsterdam"];
169 
170  /// <summary>
171  /// Gets the time zone for Athens, Greece. This is a daylight savings time zone.
172  /// </summary>
173  public static readonly DateTimeZone Athens = DateTimeZoneProviders.Tzdb["Europe/Athens"];
174 
175  /// <summary>
176  /// Gets the time zone for Berlin, Germany. This is a daylight savings time zone.
177  /// </summary>
178  public static readonly DateTimeZone Berlin = DateTimeZoneProviders.Tzdb["Europe/Berlin"];
179 
180  /// <summary>
181  /// Gets the time zone for Bucharest, Romania. This is a daylight savings time zone.
182  /// </summary>
183  public static readonly DateTimeZone Bucharest = DateTimeZoneProviders.Tzdb["Europe/Bucharest"];
184 
185  /// <summary>
186  /// Gets the time zone for Dublin, Ireland. This is a daylight savings time zone.
187  /// </summary>
188  public static readonly DateTimeZone Dublin = DateTimeZoneProviders.Tzdb["Europe/Dublin"];
189 
190  /// <summary>
191  /// Gets the time zone for Helsinki, Finland. This is a daylight savings time zone.
192  /// </summary>
193  public static readonly DateTimeZone Helsinki = DateTimeZoneProviders.Tzdb["Europe/Helsinki"];
194 
195  /// <summary>
196  /// Gets the time zone for Istanbul, Turkey. This is a daylight savings time zone.
197  /// </summary>
198  public static readonly DateTimeZone Istanbul = DateTimeZoneProviders.Tzdb["Europe/Istanbul"];
199 
200  /// <summary>
201  /// Gets the time zone for Minsk, Belarus.
202  /// </summary>
203  public static readonly DateTimeZone Minsk = DateTimeZoneProviders.Tzdb["Europe/Minsk"];
204 
205  /// <summary>
206  /// Gets the time zone for Paris, France. This is a daylight savings time zone.
207  /// </summary>
208  public static readonly DateTimeZone Paris = DateTimeZoneProviders.Tzdb["Europe/Paris"];
209 
210  /// <summary>
211  /// Gets the time zone for Zurich, Switzerland. This is a daylight savings time zone.
212  /// </summary>
213  public static readonly DateTimeZone Zurich = DateTimeZoneProviders.Tzdb["Europe/Zurich"];
214 
215  /// <summary>
216  /// Gets the time zone for Honolulu, USA. This is a daylight savings time zone.
217  /// </summary>
218  public static readonly DateTimeZone Honolulu = DateTimeZoneProviders.Tzdb["Pacific/Honolulu"];
219 
220  /// <summary>
221  /// Gets the time zone for Kolkata, India.
222  /// </summary>
223  public static readonly DateTimeZone Kolkata = DateTimeZoneProviders.Tzdb["Asia/Kolkata"];
224  }
225 }