#2671: Data.Time.Clock parseTime's %y parses "08" as 1908
---------------------------------+------------------------------------------
    Reporter:  simonmic          |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  libraries/base    |      Version:  6.8.2           
    Severity:  normal            |   Resolution:                  
    Keywords:  time              |     Testcase:                  
Architecture:  Unknown/Multiple  |           Os:  Unknown/Multiple
---------------------------------+------------------------------------------
Comment (by simonmic):

 {{{
 $ ghci --version
 The Glorious Glasgow Haskell Compilation System, version 6.8.2
 $ ghci
 Prelude> :m + System.Locale Data.Time.Clock Data.Time.Format
 Prelude Data.Time.Format Data.Time.Clock System.Locale> parseTime
 defaultTimeLocale "%y" "08" :: Ma$
 Just 1908-01-01 00:00:00 UTC
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2671#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to