Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for encoding TimeOfDay
to ByteString
. Any encoding
that is a superset of ASCII is compatible with the functions in
this module. This includes UTF-8 and ISO-8859-15 but does not
include UTF-16 or UTF-32.
- builder_HMS :: SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder
- builder_IMS_p :: MeridiemLocale ByteString -> SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder
- internalBuilder_I :: Int -> Builder
- internalBuilder_p :: MeridiemLocale ByteString -> Int -> Builder
- builder_IMSp :: MeridiemLocale ByteString -> SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder
- parser_HMS :: Maybe Char -> Parser TimeOfDay
- parser_HMS_opt_S :: Maybe Char -> Parser TimeOfDay
- parseSecondsAndNanoseconds :: Parser Int64
- countZeroes :: Parser Int
- nanosecondsBuilder :: Int64 -> Builder
- microsecondsBuilder :: Int64 -> Builder
- millisecondsBuilder :: Int64 -> Builder
- prettyNanosecondsBuilder :: SubsecondPrecision -> Int64 -> Builder
- int64Builder :: Int64 -> Builder
- internalBuilder_NS :: SubsecondPrecision -> Maybe Char -> Int -> Int64 -> Builder
Documentation
builder_HMS :: SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder Source #
This could be written much more efficiently since we know the
exact size the resulting Text
will be.
builder_IMS_p :: MeridiemLocale ByteString -> SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder Source #
internalBuilder_I :: Int -> Builder Source #
internalBuilder_p :: MeridiemLocale ByteString -> Int -> Builder Source #
builder_IMSp :: MeridiemLocale ByteString -> SubsecondPrecision -> Maybe Char -> TimeOfDay -> Builder Source #
parser_HMS_opt_S :: Maybe Char -> Parser TimeOfDay Source #
Parses text that is formatted as either of the following:
%H:%M
%H:%M:%S
That is, the seconds and subseconds part is optional. If it is
not provided, it is assumed to be zero. This format shows up
in Google Chrome's datetime-local
inputs.
countZeroes :: Parser Int Source #
nanosecondsBuilder :: Int64 -> Builder Source #
microsecondsBuilder :: Int64 -> Builder Source #
millisecondsBuilder :: Int64 -> Builder Source #
int64Builder :: Int64 -> Builder Source #
internalBuilder_NS :: SubsecondPrecision -> Maybe Char -> Int -> Int64 -> Builder Source #