vimeta- Frontend for video metadata tagging tools
CopyrightThis file is part of the package vimeta. It is subject to the
license terms in the LICENSE file found in the top-level
directory of this distribution and at:

No part of this package including this file may be copied
modified propagated or distributed except according to the terms
contained in the LICENSE file.
Safe HaskellNone





type FormatTable = Map Char (Maybe Text) Source #

Mapping of format characters to their possible replacement text.

fromFormatString Source #


:: FormatTable

Format character mapping.

-> String

Name of format string.

-> Text

Input text.

-> Either String Text

Output text or error.

Replace format characters prefixed with a % with the replacement text found in the given Map.

formatYear :: Maybe Day -> Maybe Text Source #

Format a Day displaying just the year.

formatFullDate :: Maybe Day -> Maybe Text Source #

Format a Day using the XML schema notation.