Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype InfluxTimeStamp = InfluxTimeStamp UTCTime
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