Documentation
seconds :: Num i => i -> Direction -> iSource
The number of seconds from the current time in the specified direction. For example, three seconds in the past is:
seconds 3 Ago
And three seconds into the future is:
seconds 3 FromNow
This only produces seconds, it does not produce the actual time. See the
functions in Data.Time.Convenience for timeFor
and timeSince
.
minutes :: Num i => i -> Direction -> iSource
Similar to seconds
, this produces the number of minutes from the current
time in the specified direction, in seconds. It is most useful as an offset
for functions in the Data.Time.Convenience module.
hours :: Num i => i -> Direction -> iSource
Similar to seconds
, this produces the number of hours from the current
time in the specified direction, in seconds. It is most useful as an offset
for functions in the Data.Time.Convenience module. See seconds
for an
example.
days :: Num i => i -> Direction -> iSource
Similar to seconds
, this produces the number of days from the current
time in the specified direction, in seconds. It is most useful as an offset
for functions in the Data.Time.Convenience module. See seconds
for an
example.
weeks :: Num i => i -> Direction -> iSource
Similar to seconds
, this produces the number of weeks from the current
time in the specified direction, in seconds. It is most useful as an offset
for functions in the Data.Time.Convenience module. See seconds
for an
example.
fortnights :: Num i => i -> Direction -> iSource
Similar to seconds
, this produces the number of fortnights (two weeks)
from the current time in the specified direction, in seconds. It is most
useful as an offset for functions in the Data.Time.Convenience module. See
seconds
for an example.