Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
time
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rinat Striungis
time
Commits
afbfe8eb
Commit
afbfe8eb
authored
6 years ago
by
Ashley Yakeley
Browse files
Options
Downloads
Patches
Plain Diff
fixes for #81 and #111
parent
48874869
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.md
+2
-0
2 additions, 0 deletions
changelog.md
lib/Data/Time/Format/Locale.hs
+4
-0
4 additions, 0 deletions
lib/Data/Time/Format/Locale.hs
lib/Data/Time/Format/Parse.hs
+0
-39
0 additions, 39 deletions
lib/Data/Time/Format/Parse.hs
with
6 additions
and
39 deletions
changelog.md
+
2
−
0
View file @
afbfe8eb
# Change Log
## [1.10]
-
remove deprecated functions parseTime, readTime, readsTime
-
deprecate iso8601DateFormat
## [1.9.3]
-
documentation fixes
...
...
This diff is collapsed.
Click to expand it.
lib/Data/Time/Format/Locale.hs
+
4
−
0
View file @
afbfe8eb
...
...
@@ -71,6 +71,10 @@ defaultTimeLocale =
]
}
{-# DEPRECATED
iso8601DateFormat "use \"Data.Time.Format.ISO8601\" functions instead"
#-}
{- | Construct format string according to <http://en.wikipedia.org/wiki/ISO_8601 ISO-8601>.
The @Maybe String@ argument allows to supply an optional time specification. E.g.:
...
...
This diff is collapsed.
Click to expand it.
lib/Data/Time/Format/Parse.hs
+
0
−
39
View file @
afbfe8eb
...
...
@@ -7,9 +7,6 @@ module Data.Time.Format.Parse
,
parseTimeOrError
,
readSTime
,
readPTime
,
parseTime
,
readTime
,
readsTime
,
ParseTime
()
-- * Locale
,
module
Data
.
Time
.
Format
.
Locale
...
...
@@ -128,42 +125,6 @@ readPOnlyTime ::
->
ReadP
t
readPOnlyTime
=
readPOnlyTime'
Proxy
{-# DEPRECATED
parseTime "use \"parseTimeM True\" instead"
#-}
parseTime
::
ParseTime
t
=>
TimeLocale
-- ^ Time locale.
->
String
-- ^ Format string.
->
String
-- ^ Input string.
->
Maybe
t
-- ^ The time value, or 'Nothing' if the input could
-- not be parsed using the given format.
parseTime
=
parseTimeM
True
{-# DEPRECATED
readTime "use \"parseTimeOrError True\" instead"
#-}
readTime
::
ParseTime
t
=>
TimeLocale
-- ^ Time locale.
->
String
-- ^ Format string.
->
String
-- ^ Input string.
->
t
-- ^ The time value.
readTime
=
parseTimeOrError
True
{-# DEPRECATED
readsTime "use \"readSTime True\" instead"
#-}
readsTime
::
ParseTime
t
=>
TimeLocale
-- ^ Time locale.
->
String
-- ^ Format string
->
ReadS
t
readsTime
=
readSTime
True
-- * Read instances for time package types
instance
Read
Day
where
readsPrec
_
=
readParen
False
$
readSTime
True
defaultTimeLocale
"%Y-%m-%d"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment