You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TimeInNanos as input to an Aws::Client method, you can use a vanilla Hash:

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

Contains a timestamp with optional nanosecond granularity.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#offset_in_nanosInteger

The nanosecond offset from timeInSeconds.

Returns:

  • (Integer)

    The nanosecond offset from timeInSeconds.

#time_in_secondsInteger

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

Returns:

  • (Integer)

    The timestamp date, in seconds, in the Unix epoch format.