-
Notifications
You must be signed in to change notification settings - Fork 0
/
time_zone.proto
63 lines (53 loc) · 2.35 KB
/
time_zone.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright 2020-2024 SIX AFTER, INC (SIX AFTER)
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: SIX AFTER, INC (SIX AFTER)
//
// 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.
syntax="proto3";
package sixafter.types;
option go_package="github.com/sixafter/types;types";
option cc_enable_arenas = true;
option java_package = "com.sixafter.types";
option java_multiple_files = true;
option java_outer_classname = "TimeZoneProto";
option objc_class_prefix = "TPB";
option csharp_namespace = "SixAfter.Types.WellKnownTypes";
// The `TimeZone` message represents a time zone, which is an area
// observing a uniform standard time for legal, commercial, and social purposes.
message TimeZone {
// The `TimeOffset` message represents a time offset from Coordinated
// Universal Time (UTC) in terms of hours and minutes.
message TimeOffset {
// The offset from UTC in whole hours.
// Example: -5 for UTC-5 (Eastern Standard Time).
int32 hours = 1;
// The additional offset from UTC in minutes.
// Example: 30 for UTC+5:30 (India Standard Time).
int32 minutes = 2;
}
// The name of the time zone.
// Example: "America/New_York".
string name = 1;
// The common abbreviation for the time zone.
// Example: "EST" for Eastern Standard Time or "EDT" for Eastern Daylight Time.
string abbreviation = 2;
// The Standard Time (STD) offset from UTC, in hours and minutes.
// This represents the time zone's offset when daylight saving time is not in effect.
// Example: For "America/New_York", the standard time offset is UTC-5.
TimeOffset utc_offset_std = 3;
// The Daylight Saving Time (DST) offset from UTC, in hours and minutes.
// This represents the time zone's offset when daylight saving time is in effect.
// Example: For "America/New_York", the daylight saving time offset is UTC-4.
TimeOffset utc_offset_dst = 4;
}