lib/influxdb2/client/point.rb
def time(time, precision)
      @time = time
      @precision = precision
      self
    end
# Updates the timestamp for the point.
#
# @example InfluxDB2::Point.new(name: "h2o")
#   .add_tag("location", "europe")
#   .add_field("level", 2)
#   .time(Time.new(2015, 10, 15, 8, 20, 15), InfluxDB2::WritePrecision::MILLISECOND)
#
# @example InfluxDB2::Point.new(name: "h2o")
#   .add_tag("location", "europe")
#   .add_field("level", 2)
#   .time(123, InfluxDB2::WritePrecision::NANOSECOND)
#
# @param [Object] time the timestamp
# @param [WritePrecision] precision the timestamp precision
Updates the timestamp for the point.
Updates the timestamp for the point .
def time(time, precision)
      @time = time
      @precision = precision
      self
    end
def time ( time , precision ) @time = time @precision = precision self end
Updates the timestamp for the point.
Updates the timestamp for the point .
time
precision
precision the timestamp precision
precision the timestamp precision
example
None
example
:Point.new(name: "h2o") .add_tag("location", "europe") .add_field("level", 2) .time(123, InfluxDB2::WritePrecision::NANOSECOND)
: Point . new ( name : " h2o " ) . add_tag ( " location " " europe " ) . add_field ( " level " 2 ) . time ( 123 InfluxDB2 :: WritePrecision :: NANOSECOND )