mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
mkdatespan haddock
This commit is contained in:
parent
cd68f43be3
commit
55033b6e79
@ -561,6 +561,8 @@ justdatespan rdate = do
|
||||
d <- smartdate
|
||||
return $ spanFromSmartDate rdate d
|
||||
|
||||
-- | Make a datespan from two valid date strings parseable by parsedate
|
||||
-- (or raise an error). Eg: mkdatespan "2011/1/1" "2011/12/31".
|
||||
mkdatespan :: String -> String -> DateSpan
|
||||
mkdatespan b = DateSpan (Just $ parsedate b) . Just . parsedate
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user