fay-base-0.20.0.0: The base package for Fay.

Safe HaskellNone
LanguageHaskell98

Data.Time

Contents

Description

A limited subset of the time package.

Synopsis

Compatible with the time package

getCurrentTime :: Fay UTCTime Source

Get the current time.

fromGregorian Source

Arguments

:: Int

Year.

-> Int

Month.

-> Int

Day.

-> Day 

Convert from proleptic Gregorian calendar. First argument is year, second month number (1-12), third day (1-31).

data UTCTime Source

Date representation (internally represented as milliseconds from Epoch).

data Day Source

Day representation (internally represented as milliseconds from Epoch).

Instances

utctDay :: UTCTime -> Day Source

Extract the day from the time.

Incompatible Fay-specific helpers

showTime :: UTCTime -> Text Source

Show a time. Meant for debugging purposes, not production presentation.

showDay :: Day -> Text Source

Show a day. Meant for debugging purposes, not production presentation.