Module

Data.TimeSeries.Time

Package
purescript-timeseries
Repository
carldata/purescript-timeseries

Helper function for DateTime operations

#Timestamp Source

type Timestamp = Number

Time stamp in milliseconds as defined by JS Date function

#formatTime Source

formatTime :: Number -> String

Convert Timestamp into date representation

#parseISOTime Source

parseISOTime :: String -> Maybe Number

Parse string representation of date time into the Timestamp.

#seconds Source

seconds :: Int -> Timestamp

Convert given number of seconds into Timestamp value.

#minutes Source

minutes :: Int -> Timestamp

Convert given number of minutes into Timestamp value.

#hours Source

hours :: Int -> Timestamp

Convert given number of hours into Timestamp value.