classy-influxdb-simple-0.2.1.0: Super simple InfluxDB package in Classy-MTL style

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Simple.Classy.Types.InfluxTimeStamp

Synopsis

Documentation

newtype InfluxTimeStamp Source #

Wrapper class for UTCTime so we can provide some easier handling of Influx timestamps coming in and out of the DB.

The FromJSON instance can handle the following response granuality/format: * seconds * nanoseconds * string format matching 2016-07-12T00:00:00Z

The ToJSON instance will print the time as epoch seconds

Constructors

InfluxTimeStamp UTCTime 

Instances

Eq InfluxTimeStamp Source # 
Show InfluxTimeStamp Source # 
Generic InfluxTimeStamp Source # 
ToJSON InfluxTimeStamp Source # 
FromJSON InfluxTimeStamp Source # 
Wrapped InfluxTimeStamp Source # 
(~) * InfluxTimeStamp t0 => Rewrapped InfluxTimeStamp t0 Source # 
type Rep InfluxTimeStamp Source # 
type Rep InfluxTimeStamp = D1 (MetaData "InfluxTimeStamp" "Database.InfluxDB.Simple.Classy.Types.InfluxTimeStamp" "classy-influxdb-simple-0.2.1.0-5eBiI94v0QbEgMxLyU0rNH" True) (C1 (MetaCons "InfluxTimeStamp" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)))
type Unwrapped InfluxTimeStamp Source #