- 2.58.0 (latest)
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public interface DateTimeOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getDay()
public abstract int getDay()
Required. Day of month. Must be from 1 to 31 and valid for the year and month.
int32 day = 3;
Type | Description |
int | The day. |
getHours()
public abstract int getHours()
Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
int32 hours = 4;
Type | Description |
int | The hours. |
getMinutes()
public abstract int getMinutes()
Required. Minutes of hour of day. Must be from 0 to 59.
int32 minutes = 5;
Type | Description |
int | The minutes. |
getMonth()
public abstract int getMonth()
Required. Month of year. Must be from 1 to 12.
int32 month = 2;
Type | Description |
int | The month. |
getNanos()
public abstract int getNanos()
Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
int32 nanos = 7;
Type | Description |
int | The nanos. |
getSeconds()
public abstract int getSeconds()
Required. Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 6;
Type | Description |
int | The seconds. |
getTimeOffsetCase()
public abstract DateTime.TimeOffsetCase getTimeOffsetCase()
Type | Description |
DateTime.TimeOffsetCase |
getTimeZone()
public abstract TimeZone getTimeZone()
Time zone.
.google.type.TimeZone time_zone = 9;
Type | Description |
TimeZone | The timeZone. |
getTimeZoneOrBuilder()
public abstract TimeZoneOrBuilder getTimeZoneOrBuilder()
Time zone.
.google.type.TimeZone time_zone = 9;
Type | Description |
TimeZoneOrBuilder |
getUtcOffset()
public abstract Duration getUtcOffset()
UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
.google.protobuf.Duration utc_offset = 8;
Type | Description |
Duration | The utcOffset. |
getUtcOffsetOrBuilder()
public abstract DurationOrBuilder getUtcOffsetOrBuilder()
UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
.google.protobuf.Duration utc_offset = 8;
Type | Description |
DurationOrBuilder |
getYear()
public abstract int getYear()
Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
int32 year = 1;
Type | Description |
int | The year. |
hasTimeZone()
public abstract boolean hasTimeZone()
Time zone.
.google.type.TimeZone time_zone = 9;
Type | Description |
boolean | Whether the timeZone field is set. |
hasUtcOffset()
public abstract boolean hasUtcOffset()
UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
.google.protobuf.Duration utc_offset = 8;
Type | Description |
boolean | Whether the utcOffset field is set. |