Package com.google.api.client.util
Class DateTime.Rfc3339ParseResult
- java.lang.Object
-
- com.google.api.client.util.DateTime.Rfc3339ParseResult
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DateTime
private static class DateTime.Rfc3339ParseResult extends java.lang.Object implements java.io.Serializable
Result of parsing an RFC 3339 string.
-
-
Field Summary
Fields Modifier and Type Field Description private int
nanos
private long
seconds
private static long
serialVersionUID
private boolean
timeGiven
private java.lang.Integer
tzShift
-
Constructor Summary
Constructors Modifier Constructor Description private
Rfc3339ParseResult(long seconds, int nanos, boolean timeGiven, java.lang.Integer tzShift)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private DateTime
toDateTime()
Convert thisDateTime.Rfc3339ParseResult
to aDateTime
with millisecond precision.private DateTime.SecondsAndNanos
toSecondsAndNanos()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
seconds
private final long seconds
-
nanos
private final int nanos
-
timeGiven
private final boolean timeGiven
-
tzShift
private final java.lang.Integer tzShift
-
-
Method Detail
-
toDateTime
private DateTime toDateTime()
Convert thisDateTime.Rfc3339ParseResult
to aDateTime
with millisecond precision. Any fraction of a millisecond will be truncated.
-
toSecondsAndNanos
private DateTime.SecondsAndNanos toSecondsAndNanos()
-
-