rethinkdb-1.8.0.4: RethinkDB driver for Haskell

Safe HaskellNone

Database.RethinkDB.Time

Synopsis

Documentation

now :: ReQLSource

The time and date when the query is executed

time :: ReQL -> ReQL -> ReQL -> ReQL -> ReQL -> ReQL -> ReQL -> ReQLSource

Build a time object from the year, month, day, hour, minute, second and timezone fields

epochTime :: ReQL -> ReQLSource

Build a time object given the number of seconds since the unix epoch

iso8601 :: ReQL -> ReQLSource

Build a time object given an iso8601 string

inTimezone :: Expr time => ReQL -> time -> ReQLSource

The same time in a different timezone

data Bound a Source

Constructors

Open 

Fields

boundValue :: a
 
Closed 

Fields

boundValue :: a
 

during :: (Expr left, Expr right, Expr time) => Bound left -> Bound right -> time -> ReQLSource

Test if a time is between two other times

timezone :: Expr time => time -> ReQLSource

Extract part of a time value

seconds :: Expr time => time -> ReQLSource

Extract part of a time value

minutes :: Expr time => time -> ReQLSource

Extract part of a time value

hours :: Expr time => time -> ReQLSource

Extract part of a time value

dayOfYear :: Expr time => time -> ReQLSource

Extract part of a time value

dayOfWeek :: Expr time => time -> ReQLSource

Extract part of a time value

day :: Expr time => time -> ReQLSource

Extract part of a time value

month :: Expr time => time -> ReQLSource

Extract part of a time value

year :: Expr time => time -> ReQLSource

Extract part of a time value

timeOfDay :: Expr time => time -> ReQLSource

Extract part of a time value

date :: Expr time => time -> ReQLSource

Extract part of a time value

toIso8601 :: Expr t => t -> ReQLSource

Convert a time to another representation

toEpochTime :: Expr t => t -> ReQLSource

Convert a time to another representation

newtype UTCTime Source

Time with no time zone The default FromJSON instance for Data.Time.UTCTime is incompatible with ReQL's time type

Constructors

UTCTime UTCTime 

newtype ZonedTime Source

Time with a time zone The default FromJSON instance for Data.Time.ZonedTime is incompatible with ReQL's time type

Constructors

ZonedTime ZonedTime