lib/google/cloud/dataproc/v1/doc/google/protobuf/timestamp.rb in google-cloud-dataproc-0.3.0 vs lib/google/cloud/dataproc/v1/doc/google/protobuf/timestamp.rb in google-cloud-dataproc-0.3.1
- old
+ new
@@ -13,22 +13,24 @@
# limitations under the License.
module Google
module Protobuf
- # A Timestamp represents a point in time independent of any time zone
- # or calendar, represented as seconds and fractions of seconds at
- # nanosecond resolution in UTC Epoch time. It is encoded using the
- # Proleptic Gregorian Calendar which extends the Gregorian calendar
- # backwards to year one. It is encoded assuming all minutes are 60
- # seconds long, i.e. leap seconds are "smeared" so that no leap second
- # table is needed for interpretation. Range is from
- # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
- # By restricting to that range, we ensure that we can convert to
- # and from RFC 3339 date strings.
- # See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
+ # A Timestamp represents a point in time independent of any time zone or local
+ # calendar, encoded as a count of seconds and fractions of seconds at
+ # nanosecond resolution. The count is relative to an epoch at UTC midnight on
+ # January 1, 1970, in the proleptic Gregorian calendar which extends the
+ # Gregorian calendar backwards to year one.
#
+ # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
+ # second table is needed for interpretation, using a [24-hour linear
+ # smear](https://developers.google.com/time/smear).
+ #
+ # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
+ # restricting to that range, we ensure that we can convert to and from [RFC
+ # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
+ #
# = Examples
#
# Example 1: Compute Timestamp from POSIX `time()`.
#
# Timestamp timestamp;
@@ -84,15 +86,15 @@
#
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
# 01:30 UTC on January 15, 2017.
#
# In JavaScript, one can convert a Date object to this format using the
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
+ # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
# method. In Python, a standard `datetime.datetime` object can be converted
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
+ # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
# ) to obtain a formatter capable of generating timestamps in this format.
# @!attribute [rw] seconds
# @return [Integer]
# Represents seconds of UTC time since Unix epoch
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
\ No newline at end of file