Class: Aws::IoTSiteWise::Types::TimeInNanos

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb

Overview

Note:

When making an API call, you may pass TimeInNanos data as a hash:

{
  time_in_seconds: 1, # required
  offset_in_nanos: 1,
}

Contains a timestamp with optional nanosecond granularity.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#offset_in_nanosInteger

The nanosecond offset from timeInSeconds.

Returns:

  • (Integer)


4644
4645
4646
4647
4648
4649
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 4644

class TimeInNanos < Struct.new(
  :time_in_seconds,
  :offset_in_nanos)
  SENSITIVE = []
  include Aws::Structure
end

#time_in_secondsInteger

The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos.

Returns:

  • (Integer)


4644
4645
4646
4647
4648
4649
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 4644

class TimeInNanos < Struct.new(
  :time_in_seconds,
  :offset_in_nanos)
  SENSITIVE = []
  include Aws::Structure
end