public final class DateTime
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DateTime() |
| Modifier and Type | Method and Description |
|---|---|
DateTime |
clone() |
Integer |
getDay()
Optional.
|
Integer |
getHours()
Optional.
|
Integer |
getMinutes()
Optional.
|
Integer |
getMonth()
Optional.
|
Integer |
getNanos()
Optional.
|
Integer |
getSeconds()
Optional.
|
TimeZone |
getTimeZone()
Time zone.
|
String |
getUtcOffset()
UTC offset.
|
Integer |
getYear()
Optional.
|
DateTime |
set(String fieldName,
Object value) |
DateTime |
setDay(Integer day)
Optional.
|
DateTime |
setHours(Integer hours)
Optional.
|
DateTime |
setMinutes(Integer minutes)
Optional.
|
DateTime |
setMonth(Integer month)
Optional.
|
DateTime |
setNanos(Integer nanos)
Optional.
|
DateTime |
setSeconds(Integer seconds)
Optional.
|
DateTime |
setTimeZone(TimeZone timeZone)
Time zone.
|
DateTime |
setUtcOffset(String utcOffset)
UTC offset.
|
DateTime |
setYear(Integer year)
Optional.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getDay()
null for nonepublic DateTime setDay(Integer day)
day - day or null for nonepublic Integer getHours()
null for nonepublic DateTime setHours(Integer hours)
hours - hours or null for nonepublic Integer getMinutes()
null for nonepublic DateTime setMinutes(Integer minutes)
minutes - minutes or null for nonepublic Integer getMonth()
null for nonepublic DateTime setMonth(Integer month)
month - month or null for nonepublic Integer getNanos()
null for nonepublic DateTime setNanos(Integer nanos)
nanos - nanos or null for nonepublic Integer getSeconds()
null for nonepublic DateTime setSeconds(Integer seconds)
seconds - seconds or null for nonepublic TimeZone getTimeZone()
null for nonepublic DateTime setTimeZone(TimeZone timeZone)
timeZone - timeZone or null for nonepublic String getUtcOffset()
null for nonepublic DateTime setUtcOffset(String utcOffset)
utcOffset - utcOffset or null for nonepublic Integer getYear()
null for nonepublic DateTime setYear(Integer year)
year - year or null for nonepublic DateTime set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DateTime clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.