text-format-heavy-0.1.4.0: Full-weight string formatting library, analog of Python's string.format

Safe HaskellNone
LanguageHaskell2010

Data.Text.Format.Heavy.Time

Contents

Description

This module contains Formatable instances for time/date values, which use Data.Time.Format notation for formats (like %H:%M). Default date/time format is RFC 822.

This module is not re-exported by Data.Text.Format.Heavy by default, because it defines only one of possible time formatting strings syntaxes. One may like other syntax for some reason; if we re-exported this module by default, it would be impossible to hide these instances to implement other.

Synopsis

Documentation

genericTimeFormat :: FormatTime t => VarFormat -> t -> Either String Builder Source #

Generic time formatter, using Data.Time.Format

Orphan instances