gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017-present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.Core.Text.Corpus.Parsers.Date

Description

According to the language of the text, parseDateRaw returns date as Text:

TODO : Add some tests import Gargantext.Core.Text.Corpus.Parsers.Date as DGP DGP.parseDateRaw DGP.FR "12 avril 2010" == "2010-04-12T00:00:00.000+00:00"

Synopsis

Documentation

dateSplit :: Text -> Either Text (UTCTime, (Year, Month, Day)) #

Parse date to Ints TODO add hours, minutes and seconds

mDateSplit :: Maybe Text -> (Maybe UTCTime, (Maybe Year, Maybe Month, Maybe Day)) #

split' :: UTCTime -> (Year, Month, Day) #