OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at |
| 6 // |
| 7 // 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 #ifndef CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_ |
| 16 #define CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_ |
| 17 |
| 18 #include <stdint.h> |
| 19 |
| 20 #include "base/strings/string16.h" |
| 21 #include "compat/non_win/minwinbase.h" |
| 22 |
| 23 //! \brief Information about a time zone and its daylight saving rules. |
| 24 struct TIME_ZONE_INFORMATION { |
| 25 //! \brief The number of minutes west of UTC. |
| 26 int32_t Bias; |
| 27 |
| 28 //! \brief The UTF-16-encoded name of the time zone when observing standard |
| 29 //! time. |
| 30 char16 StandardName[32]; |
| 31 |
| 32 //! \brief The date and time to switch from daylight saving time to standard |
| 33 //! time. |
| 34 //! |
| 35 //! This can be a specific time, or with SYSTEMTIME::wYear set to `0`, it can |
| 36 //! reflect an annual recurring transition. In that case, SYSTEMTIME::wDay in |
| 37 //! the range `1` to `5` is interpreted as the given occurrence of |
| 38 //! SYSTEMTIME::wDayOfWeek within the month, `1` being the first occurrence |
| 39 //! and `5` being the last (even if there are fewer than 5). |
| 40 SYSTEMTIME StandardDate; |
| 41 |
| 42 //! \brief The bias relative to #Bias to be applied when observing standard |
| 43 //! time. |
| 44 int32_t StandardBias; |
| 45 |
| 46 //! \brief The UTF-16-encoded name of the time zone when observing daylight |
| 47 //! saving time. |
| 48 char16 DaylightName[32]; |
| 49 |
| 50 //! \brief The date and time to switch from standard time to daylight saving |
| 51 //! time. |
| 52 //! |
| 53 //! This field is specified in the same manner as #StandardDate. |
| 54 SYSTEMTIME DaylightDate; |
| 55 |
| 56 //! \brief The bias relative to #Bias to be applied when observing daylight |
| 57 //! saving time. |
| 58 int32_t DaylightBias; |
| 59 }; |
| 60 |
| 61 #endif // CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_ |
OLD | NEW |