[commit: packages/time] format-widths, ghc, improve-leapseconds, master, posix-perf, tasty, wip/travis: Changed docs for %U and %W to include the possibility of week 0 results. (85fd256)

git at git.haskell.org git at git.haskell.org
Fri Apr 21 16:47:35 UTC 2017


Repository : ssh://git@git.haskell.org/time

On branches: format-widths,ghc,improve-leapseconds,master,posix-perf,tasty,wip/travis
Link       : http://git.haskell.org/packages/time.git/commitdiff/85fd2569144c8fc3d2249817dabf9944e32cba78

>---------------------------------------------------------------

commit 85fd2569144c8fc3d2249817dabf9944e32cba78
Author: bjorn <bjorn at bringert.net>
Date:   Sat Nov 11 08:52:07 2006 -0800

    Changed docs for %U and %W to include the possibility of week 0 results.
    
    darcs-hash:20061111165207-6cdb2-9182b09f62f804176b0febb4a2169348d06655f3


>---------------------------------------------------------------

85fd2569144c8fc3d2249817dabf9944e32cba78
 Data/Time/LocalTime/Format.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Data/Time/LocalTime/Format.hs b/Data/Time/LocalTime/Format.hs
index 9564868..d817c13 100644
--- a/Data/Time/LocalTime/Format.hs
+++ b/Data/Time/LocalTime/Format.hs
@@ -113,11 +113,11 @@ class FormatTime t where
 --
 -- [@%A@] day of week, long form ('fst' from 'wDays' @locale@), @Sunday@ - @Saturday@
 --
--- [@%U@] week number of year, where weeks start on Sunday (as 'sundayStartWeek'), @01@ - @53@
+-- [@%U@] week number of year, where weeks start on Sunday (as 'sundayStartWeek'), @00@ - @53@
 --
 -- [@%w@] day of week number, @0@ (= Sunday) - @6@ (= Saturday)
 --
--- [@%W@] week number of year, where weeks start on Monday (as 'mondayStartWeek'), @01@ - @53@
+-- [@%W@] week number of year, where weeks start on Monday (as 'mondayStartWeek'), @00@ - @53@
 formatTime :: (FormatTime t) => TimeLocale -> String -> t -> String
 formatTime _ [] _ = ""
 formatTime locale ('%':c:cs) t = (formatChar c) ++ (formatTime locale cs t) where



More information about the ghc-commits mailing list