proto_docs/google/protobuf/timestamp.rb in google-cloud-tpu-v1-0.3.0 vs proto_docs/google/protobuf/timestamp.rb in google-cloud-tpu-v1-0.4.0
- old
+ new
@@ -67,20 +67,18 @@
# long millis = System.currentTimeMillis();
#
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
# .setNanos((int) ((millis % 1000) * 1000000)).build();
#
- #
# Example 5: Compute Timestamp from Java `Instant.now()`.
#
# Instant now = Instant.now();
#
# Timestamp timestamp =
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
# .setNanos(now.getNano()).build();
#
- #
# Example 6: Compute Timestamp from current time in Python.
#
# timestamp = Timestamp()
# timestamp.GetCurrentTime()
#
@@ -106,10 +104,10 @@
# 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%2D%2D
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
# ) 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