amazonka-iotsitewise-2.0: Amazon IoT SiteWise SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTSiteWise.Types.TimeInNanos

Description

 
Synopsis

Documentation

data TimeInNanos Source #

Contains a timestamp with optional nanosecond granularity.

See: newTimeInNanos smart constructor.

Constructors

TimeInNanos' 

Fields

Instances

Instances details
FromJSON TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

ToJSON TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

Generic TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

Associated Types

type Rep TimeInNanos :: Type -> Type #

Read TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

Show TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

NFData TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

Methods

rnf :: TimeInNanos -> () #

Eq TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

Hashable TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

type Rep TimeInNanos Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.TimeInNanos

type Rep TimeInNanos = D1 ('MetaData "TimeInNanos" "Amazonka.IoTSiteWise.Types.TimeInNanos" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "TimeInNanos'" 'PrefixI 'True) (S1 ('MetaSel ('Just "offsetInNanos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "timeInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))

newTimeInNanos Source #

Create a value of TimeInNanos with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:offsetInNanos:TimeInNanos', timeInNanos_offsetInNanos - The nanosecond offset from timeInSeconds.

$sel:timeInSeconds:TimeInNanos', timeInNanos_timeInSeconds - The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos.

timeInNanos_offsetInNanos :: Lens' TimeInNanos (Maybe Natural) Source #

The nanosecond offset from timeInSeconds.

timeInNanos_timeInSeconds :: Lens' TimeInNanos Natural Source #

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