vimeta-0.3.1: 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:

https://github.com/pjones/vimeta

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.
LicenseBSD-2-Clause
Safe HaskellNone
LanguageHaskell2010

Vimeta.Core.Format

Description

 
Synopsis

Documentation

type FormatTable = Map Char (Maybe Text) Source #

Mapping of format characters to their possible replacement text.

fromFormatString Source #

Arguments

:: 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.