/usr/share/doc/libghc-hledger-lib-doc/html/Hledger-Data-Dates.html is in libghc-hledger-lib-doc 0.17-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Hledger.Data.Dates</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Hledger-Data-Dates.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hledger-Data-Dates.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hledger-lib-0.17: Core data types, parsers and utilities for the hledger accounting tool.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Hledger.Data.Dates</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Date parsing and utilities for hledger.
</p><p>For date and time values, we use the standard Day and UTCTime types.
</p><p>A <code><a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></code> is a date which may be partially-specified or relative.
Eg 2008/12/31, but also 2008/12, 12/31, tomorrow, last week, next year.
We represent these as a triple of strings like ("2008","12",""),
("","","tomorrow"), ("","last","week").
</p><p>A <code><a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></code> is the span of time between two specific calendar dates, or
an open-ended span where one or both dates are unspecified. (A date span
with both ends unspecified matches all dates.)
</p><p>An <code><a href="Hledger-Data-Types.html#t:Interval">Interval</a></code> is ledger's "reporting interval" - weekly, monthly,
quarterly, etc.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:showDate">showDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:getCurrentDay">getCurrentDay</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:getCurrentMonth">getCurrentMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:getCurrentYear">getCurrentYear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:elapsedSeconds">elapsedSeconds</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> a</li><li class="src short"><a href="#v:splitSpan">splitSpan</a> :: <a href="Hledger-Data-Types.html#t:Interval">Interval</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> [<a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>]</li><li class="src short"><a href="#v:splitspan">splitspan</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a>) -> (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a>) -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> [<a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>]</li><li class="src short"><a href="#v:daysInSpan">daysInSpan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:spanContainsDate">spanContainsDate</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:orDatesFrom">orDatesFrom</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:spanIntersect">spanIntersect</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:latest">latest</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:earliest">earliest</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:parsePeriodExpr">parsePeriodExpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:maybePeriod">maybePeriod</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:dateSpanAsText">dateSpanAsText</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:spanFromSmartDateString">spanFromSmartDateString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:spanFromSmartDate">spanFromSmartDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:showDay">showDay</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:fixSmartDateStr">fixSmartDateStr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:fixSmartDateStrEither">fixSmartDateStrEither</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:fixSmartDateStrEither-39-">fixSmartDateStrEither'</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:fixSmartDate">fixSmartDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:prevday">prevday</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nextday">nextday</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:startofday">startofday</a> :: a -> a</li><li class="src short"><a href="#v:thisweek">thisweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:prevweek">prevweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nextweek">nextweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:startofweek">startofweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:thismonth">thismonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:prevmonth">prevmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nextmonth">nextmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:startofmonth">startofmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:thisquarter">thisquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:prevquarter">prevquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nextquarter">nextquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:startofquarter">startofquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:thisyear">thisyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:prevyear">prevyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nextyear">nextyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:startofyear">startofyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nthdayofmonthcontaining">nthdayofmonthcontaining</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:nthdayofweekcontaining">nthdayofweekcontaining</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:firstJust">firstJust</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:parsedatetimeM">parsedatetimeM</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></li><li class="src short"><a href="#v:parsedateM">parsedateM</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:parsedatetime">parsedatetime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></li><li class="src short"><a href="#v:parsedate">parsedate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:parsetimewith">parsetimewith</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Format.html#t:ParseTime">ParseTime</a> t => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> t -> t</li><li class="src short"><a href="#v:smartdate">smartdate</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:smartdateonly">smartdateonly</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:datesepchars">datesepchars</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]</li><li class="src short"><a href="#v:datesepchar">datesepchar</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] u Identity <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:validYear">validYear</a>, <a href="#v:validDay">validDay</a>, <a href="#v:validMonth">validMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:failIfInvalidYear">failIfInvalidYear</a>, <a href="#v:failIfInvalidDay">failIfInvalidDay</a>, <a href="#v:failIfInvalidMonth">failIfInvalidMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> m <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:yyyymmdd">yyyymmdd</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:ymd">ymd</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:ym">ym</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:y">y</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:d">d</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:md">md</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:months">months</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]</li><li class="src short"><a href="#v:monthabbrevs">monthabbrevs</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]</li><li class="src short"><a href="#v:weekdays">weekdays</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]</li><li class="src short"><a href="#v:weekdayabbrevs">weekdayabbrevs</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]</li><li class="src short"><a href="#v:monthIndex">monthIndex</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:monIndex">monIndex</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:month">month</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:mon">mon</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:today">today</a>, <a href="#v:tomorrow">tomorrow</a>, <a href="#v:yesterday">yesterday</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:lastthisnextthing">lastthisnextthing</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a></li><li class="src short"><a href="#v:periodexpr">periodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:intervalanddateperiodexpr">intervalanddateperiodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:intervalperiodexpr">intervalperiodexpr</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:dateperiodexpr">dateperiodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)</li><li class="src short"><a href="#v:reportinginterval">reportinginterval</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:Interval">Interval</a></li><li class="src short"><a href="#v:periodexprdatespan">periodexprdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:doubledatespan">doubledatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:fromdatespan">fromdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:todatespan">todatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:justdatespan">justdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:mkdatespan">mkdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:nulldatespan">nulldatespan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:nulldate">nulldate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:tests_Hledger_Data_Dates">tests_Hledger_Data_Dates</a> :: <a href="/usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:showDate" class="def">showDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Dates.html#showDate" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:getCurrentDay" class="def">getCurrentDay</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#getCurrentDay" class="link">Source</a></p><div class="doc"><p>Get the current local date.
</p></div></div><div class="top"><p class="src"><a name="v:getCurrentMonth" class="def">getCurrentMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Hledger-Data-Dates.html#getCurrentMonth" class="link">Source</a></p><div class="doc"><p>Get the current local month number.
</p></div></div><div class="top"><p class="src"><a name="v:getCurrentYear" class="def">getCurrentYear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a><a href="src/Hledger-Data-Dates.html#getCurrentYear" class="link">Source</a></p><div class="doc"><p>Get the current local year.
</p></div></div><div class="top"><p class="src"><a name="v:elapsedSeconds" class="def">elapsedSeconds</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> a<a href="src/Hledger-Data-Dates.html#elapsedSeconds" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:splitSpan" class="def">splitSpan</a> :: <a href="Hledger-Data-Types.html#t:Interval">Interval</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> [<a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>]<a href="src/Hledger-Data-Dates.html#splitSpan" class="link">Source</a></p><div class="doc"><p>Split a DateSpan into one or more consecutive spans at the specified interval.
</p></div></div><div class="top"><p class="src"><a name="v:splitspan" class="def">splitspan</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a>) -> (<a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a>) -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> [<a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>]<a href="src/Hledger-Data-Dates.html#splitspan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:daysInSpan" class="def">daysInSpan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a><a href="src/Hledger-Data-Dates.html#daysInSpan" class="link">Source</a></p><div class="doc"><p>Count the days in a DateSpan, or if it is open-ended return Nothing.
</p></div></div><div class="top"><p class="src"><a name="v:spanContainsDate" class="def">spanContainsDate</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Dates.html#spanContainsDate" class="link">Source</a></p><div class="doc"><p>Does the span include the given date ?
</p></div></div><div class="top"><p class="src"><a name="v:orDatesFrom" class="def">orDatesFrom</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#orDatesFrom" class="link">Source</a></p><div class="doc"><p>Combine two datespans, filling any unspecified dates in the first
with dates from the second.
</p></div></div><div class="top"><p class="src"><a name="v:spanIntersect" class="def">spanIntersect</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#spanIntersect" class="link">Source</a></p><div class="doc"><p>Calculate the intersection of two datespans.
</p></div></div><div class="top"><p class="src"><a name="v:latest" class="def">latest</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a<a href="src/Hledger-Data-Dates.html#latest" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:earliest" class="def">earliest</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a<a href="src/Hledger-Data-Dates.html#earliest" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parsePeriodExpr" class="def">parsePeriodExpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#parsePeriodExpr" class="link">Source</a></p><div class="doc"><p>Parse a period expression to an Interval and overall DateSpan using
the provided reference date, or return a parse error.
</p></div></div><div class="top"><p class="src"><a name="v:maybePeriod" class="def">maybePeriod</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#maybePeriod" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:dateSpanAsText" class="def">dateSpanAsText</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Dates.html#dateSpanAsText" class="link">Source</a></p><div class="doc"><p>Show a DateSpan as a human-readable pseudo-period-expression string.
</p></div></div><div class="top"><p class="src"><a name="v:spanFromSmartDateString" class="def">spanFromSmartDateString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#spanFromSmartDateString" class="link">Source</a></p><div class="doc"><p>Convert a single smart date string to a date span using the provided
reference date, or raise an error.
</p></div></div><div class="top"><p class="src"><a name="v:spanFromSmartDate" class="def">spanFromSmartDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#spanFromSmartDate" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:showDay" class="def">showDay</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Dates.html#showDay" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fixSmartDateStr" class="def">fixSmartDateStr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Dates.html#fixSmartDateStr" class="link">Source</a></p><div class="doc"><p>Convert a smart date string to an explicit yyyy/mm/dd string using
the provided reference date, or raise an error.
</p></div></div><div class="top"><p class="src"><a name="v:fixSmartDateStrEither" class="def">fixSmartDateStrEither</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Dates.html#fixSmartDateStrEither" class="link">Source</a></p><div class="doc"><p>A safe version of fixSmartDateStr.
</p></div></div><div class="top"><p class="src"><a name="v:fixSmartDateStrEither-39-" class="def">fixSmartDateStrEither'</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Error.html#t:ParseError">ParseError</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#fixSmartDateStrEither%27" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fixSmartDate" class="def">fixSmartDate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#fixSmartDate" class="link">Source</a></p><div class="doc"><p>Convert a SmartDate to an absolute date using the provided reference date.
</p></div></div><div class="top"><p class="src"><a name="v:prevday" class="def">prevday</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#prevday" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nextday" class="def">nextday</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nextday" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:startofday" class="def">startofday</a> :: a -> a<a href="src/Hledger-Data-Dates.html#startofday" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:thisweek" class="def">thisweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#thisweek" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:prevweek" class="def">prevweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#prevweek" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nextweek" class="def">nextweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nextweek" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:startofweek" class="def">startofweek</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#startofweek" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:thismonth" class="def">thismonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#thismonth" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:prevmonth" class="def">prevmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#prevmonth" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nextmonth" class="def">nextmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nextmonth" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:startofmonth" class="def">startofmonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#startofmonth" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:thisquarter" class="def">thisquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#thisquarter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:prevquarter" class="def">prevquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#prevquarter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nextquarter" class="def">nextquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nextquarter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:startofquarter" class="def">startofquarter</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#startofquarter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:thisyear" class="def">thisyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#thisyear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:prevyear" class="def">prevyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#prevyear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nextyear" class="def">nextyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nextyear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:startofyear" class="def">startofyear</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#startofyear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nthdayofmonthcontaining" class="def">nthdayofmonthcontaining</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nthdayofmonthcontaining" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nthdayofweekcontaining" class="def">nthdayofweekcontaining</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nthdayofweekcontaining" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:firstJust" class="def">firstJust</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a<a href="src/Hledger-Data-Dates.html#firstJust" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parsedatetimeM" class="def">parsedatetimeM</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a><a href="src/Hledger-Data-Dates.html#parsedatetimeM" class="link">Source</a></p><div class="doc"><p>Parse a couple of date-time string formats to a time type.
</p></div></div><div class="top"><p class="src"><a name="v:parsedateM" class="def">parsedateM</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#parsedateM" class="link">Source</a></p><div class="doc"><p>Parse a couple of date string formats to a time type.
</p></div></div><div class="top"><p class="src"><a name="v:parsedatetime" class="def">parsedatetime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a><a href="src/Hledger-Data-Dates.html#parsedatetime" class="link">Source</a></p><div class="doc"><p>Parse a date-time string to a time type, or raise an error.
</p></div></div><div class="top"><p class="src"><a name="v:parsedate" class="def">parsedate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#parsedate" class="link">Source</a></p><div class="doc"><p>Parse a date string to a time type, or raise an error.
</p></div></div><div class="top"><p class="src"><a name="v:parsetimewith" class="def">parsetimewith</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Format.html#t:ParseTime">ParseTime</a> t => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> t -> t<a href="src/Hledger-Data-Dates.html#parsetimewith" class="link">Source</a></p><div class="doc"><p>Parse a time string to a time type using the provided pattern, or
return the default.
</p></div></div><div class="top"><p class="src"><a name="v:smartdate" class="def">smartdate</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#smartdate" class="link">Source</a></p><div class="doc"><p>Parse a date in any of the formats allowed in ledger's period expressions,
and maybe some others:
</p><pre> 2004
2004/10
2004/10/1
10/1
21
october, oct
yesterday, today, tomorrow
this/next/last week/day/month/quarter/year
</pre><p>Returns a SmartDate, to be converted to a full date later (see fixSmartDate).
Assumes any text in the parse stream has been lowercased.
</p></div></div><div class="top"><p class="src"><a name="v:smartdateonly" class="def">smartdateonly</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#smartdateonly" class="link">Source</a></p><div class="doc"><p>Like smartdate, but there must be nothing other than whitespace after the date.
</p></div></div><div class="top"><p class="src"><a name="v:datesepchars" class="def">datesepchars</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]<a href="src/Hledger-Data-Dates.html#datesepchars" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:datesepchar" class="def">datesepchar</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] u Identity <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a><a href="src/Hledger-Data-Dates.html#datesepchar" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:validYear" class="def">validYear</a>, <a name="v:validDay" class="def">validDay</a>, <a name="v:validMonth" class="def">validMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Dates.html#validYear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:failIfInvalidYear" class="def">failIfInvalidYear</a>, <a name="v:failIfInvalidDay" class="def">failIfInvalidDay</a>, <a name="v:failIfInvalidMonth" class="def">failIfInvalidMonth</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> m <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Hledger-Data-Dates.html#failIfInvalidYear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:yyyymmdd" class="def">yyyymmdd</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#yyyymmdd" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ymd" class="def">ymd</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#ymd" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ym" class="def">ym</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#ym" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:y" class="def">y</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#y" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:d" class="def">d</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#d" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:md" class="def">md</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#md" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:months" class="def">months</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]<a href="src/Hledger-Data-Dates.html#months" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:monthabbrevs" class="def">monthabbrevs</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]<a href="src/Hledger-Data-Dates.html#monthabbrevs" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:weekdays" class="def">weekdays</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]<a href="src/Hledger-Data-Dates.html#weekdays" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:weekdayabbrevs" class="def">weekdayabbrevs</a> :: [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>]]<a href="src/Hledger-Data-Dates.html#weekdayabbrevs" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:monthIndex" class="def">monthIndex</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Hledger-Data-Dates.html#monthIndex" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:monIndex" class="def">monIndex</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Hledger-Data-Dates.html#monIndex" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:month" class="def">month</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#month" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:mon" class="def">mon</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#mon" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:today" class="def">today</a>, <a name="v:tomorrow" class="def">tomorrow</a>, <a name="v:yesterday" class="def">yesterday</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#today" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:lastthisnextthing" class="def">lastthisnextthing</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:SmartDate">SmartDate</a><a href="src/Hledger-Data-Dates.html#lastthisnextthing" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:periodexpr" class="def">periodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#periodexpr" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:intervalanddateperiodexpr" class="def">intervalanddateperiodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#intervalanddateperiodexpr" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:intervalperiodexpr" class="def">intervalperiodexpr</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#intervalperiodexpr" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:dateperiodexpr" class="def">dateperiodexpr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st (<a href="Hledger-Data-Types.html#t:Interval">Interval</a>, <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a>)<a href="src/Hledger-Data-Dates.html#dateperiodexpr" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:reportinginterval" class="def">reportinginterval</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:Interval">Interval</a><a href="src/Hledger-Data-Dates.html#reportinginterval" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:periodexprdatespan" class="def">periodexprdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#periodexprdatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:doubledatespan" class="def">doubledatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#doubledatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromdatespan" class="def">fromdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#fromdatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:todatespan" class="def">todatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#todatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:justdatespan" class="def">justdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> st <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#justdatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:mkdatespan" class="def">mkdatespan</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#mkdatespan" class="link">Source</a></p><div class="doc"><p>Make a datespan from two valid date strings parseable by parsedate
(or raise an error). Eg: mkdatespan "2011<em>1</em>1" "2011<em>12</em>31".
</p></div></div><div class="top"><p class="src"><a name="v:nulldatespan" class="def">nulldatespan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Dates.html#nulldatespan" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nulldate" class="def">nulldate</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Dates.html#nulldate" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tests_Hledger_Data_Dates" class="def">tests_Hledger_Data_Dates</a> :: <a href="/usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a><a href="src/Hledger-Data-Dates.html#tests_Hledger_Data_Dates" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|