/usr/share/doc/libghc-old-time-doc/html/System-Time.html is in libghc-old-time-doc 1.1.0.3-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.Time</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-Time.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Time.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">old-time-1.1.0.3: Time library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) The University of Glasgow 2001</td></tr><tr><th>License</th><td>BSD-style (see the file libraries/old-time/LICENSE)</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Trustworthy</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">System.Time</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Clock times</a></li><li><a href="#g:2">Time differences</a></li><li><a href="#g:3">Calendar times</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The standard time library from Haskell 98. This library is
deprecated, please look at <code>Data.Time</code> in the <code>time</code> package
instead.</p><p><a href="System-Time.html">System.Time</a> provides functionality for clock times, including
timezone information (i.e, the functionality of "<code>time.h</code>",
adapted to the Haskell environment). It follows RFC 1129 in its
use of Coordinated Universal Time (UTC).</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:ClockTime">ClockTime</a> = <a href="#v:TOD">TOD</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:getClockTime">getClockTime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:TimeDiff">TimeDiff</a> = <a href="#v:TimeDiff">TimeDiff</a> {<ul class="subs"><li><a href="#v:tdYear">tdYear</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdMonth">tdMonth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdDay">tdDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdHour">tdHour</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdMin">tdMin</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdSec">tdSec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdPicosec">tdPicosec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li></ul>}</li><li class="src short"><a href="#v:noTimeDiff">noTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a></li><li class="src short"><a href="#v:diffClockTimes">diffClockTimes</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></li><li class="src short"><a href="#v:addToClockTime">addToClockTime</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a></li><li class="src short"><a href="#v:normalizeTimeDiff">normalizeTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></li><li class="src short"><a href="#v:timeDiffToString">timeDiffToString</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:formatTimeDiff">formatTimeDiff</a> :: <a href="file:///usr/share/doc/libghc-old-locale-doc/html/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:CalendarTime">CalendarTime</a> = <a href="#v:CalendarTime">CalendarTime</a> {<ul class="subs"><li><a href="#v:ctYear">ctYear</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctMonth">ctMonth</a> :: <a href="System-Time.html#t:Month">Month</a></li><li><a href="#v:ctDay">ctDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctHour">ctHour</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctMin">ctMin</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctSec">ctSec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctPicosec">ctPicosec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:ctWDay">ctWDay</a> :: <a href="System-Time.html#t:Day">Day</a></li><li><a href="#v:ctYDay">ctYDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctTZName">ctTZName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:ctTZ">ctTZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctIsDST">ctIsDST</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Month">Month</a><ul class="subs"><li>= <a href="#v:January">January</a></li><li>| <a href="#v:February">February</a></li><li>| <a href="#v:March">March</a></li><li>| <a href="#v:April">April</a></li><li>| <a href="#v:May">May</a></li><li>| <a href="#v:June">June</a></li><li>| <a href="#v:July">July</a></li><li>| <a href="#v:August">August</a></li><li>| <a href="#v:September">September</a></li><li>| <a href="#v:October">October</a></li><li>| <a href="#v:November">November</a></li><li>| <a href="#v:December">December</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Day">Day</a><ul class="subs"><li>= <a href="#v:Sunday">Sunday</a></li><li>| <a href="#v:Monday">Monday</a></li><li>| <a href="#v:Tuesday">Tuesday</a></li><li>| <a href="#v:Wednesday">Wednesday</a></li><li>| <a href="#v:Thursday">Thursday</a></li><li>| <a href="#v:Friday">Friday</a></li><li>| <a href="#v:Saturday">Saturday</a></li></ul></li><li class="src short"><a href="#v:toCalendarTime">toCalendarTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></li><li class="src short"><a href="#v:toUTCTime">toUTCTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></li><li class="src short"><a href="#v:toClockTime">toClockTime</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a></li><li class="src short"><a href="#v:calendarTimeToString">calendarTimeToString</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:formatCalendarTime">formatCalendarTime</a> :: <a href="file:///usr/share/doc/libghc-old-locale-doc/html/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Clock times</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ClockTime" class="def">ClockTime</a> <a href="src/System-Time.html#ClockTime" class="link">Source</a> <a href="#t:ClockTime" class="selflink">#</a></p><div class="doc"><p>A representation of the internal clock time.
Clock times may be compared, converted to strings, or converted to an
external calendar time <code><a href="System-Time.html#t:CalendarTime">CalendarTime</a></code> for I/O or other manipulations.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:TOD" class="def">TOD</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>Construct a clock time. The arguments are a number
of seconds since 00:00:00 (UTC) on 1 January 1970,
and an additional number of picoseconds.</p><p>In Haskell 98, the <code><a href="System-Time.html#t:ClockTime">ClockTime</a></code> type is abstract.</p></td></tr></table></div><div class="subs instances"><p id="control.i:ClockTime" class="caption collapser" onclick="toggleSection('i:ClockTime')">Instances</p><div id="section.i:ClockTime" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ClockTime:Eq:1" class="instance expander" onclick="toggleSection('i:id:ClockTime:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></span> <a href="src/System-Time.html#line-154" class="link">Source</a> <a href="#t:ClockTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ClockTime:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ClockTime:Ord:2" class="instance expander" onclick="toggleSection('i:id:ClockTime:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></span> <a href="src/System-Time.html#line-154" class="link">Source</a> <a href="#t:ClockTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ClockTime:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ClockTime:Show:3" class="instance expander" onclick="toggleSection('i:id:ClockTime:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></span> <a href="src/System-Time.html#line-160" class="link">Source</a> <a href="#t:ClockTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ClockTime:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-Time.html#t:ClockTime">ClockTime</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:getClockTime" class="def">getClockTime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:ClockTime">ClockTime</a> <a href="src/System-Time.html#getClockTime" class="link">Source</a> <a href="#v:getClockTime" class="selflink">#</a></p></div><h1 id="g:2">Time differences</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:TimeDiff" class="def">TimeDiff</a> <a href="src/System-Time.html#TimeDiff" class="link">Source</a> <a href="#t:TimeDiff" class="selflink">#</a></p><div class="doc"><p>records the difference between two clock times in a user-readable way.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:TimeDiff" class="def">TimeDiff</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:tdYear" class="def">tdYear</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdMonth" class="def">tdMonth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdDay" class="def">tdDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdHour" class="def">tdHour</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdMin" class="def">tdMin</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdSec" class="def">tdSec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:tdPicosec" class="def">tdPicosec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:TimeDiff" class="caption collapser" onclick="toggleSection('i:TimeDiff')">Instances</p><div id="section.i:TimeDiff" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TimeDiff:Eq:1" class="instance expander" onclick="toggleSection('i:id:TimeDiff:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></span> <a href="src/System-Time.html#line-217" class="link">Source</a> <a href="#t:TimeDiff" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TimeDiff:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TimeDiff:Ord:2" class="instance expander" onclick="toggleSection('i:id:TimeDiff:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></span> <a href="src/System-Time.html#line-217" class="link">Source</a> <a href="#t:TimeDiff" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TimeDiff:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TimeDiff:Read:3" class="instance expander" onclick="toggleSection('i:id:TimeDiff:Read:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></span> <a href="src/System-Time.html#line-217" class="link">Source</a> <a href="#t:TimeDiff" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TimeDiff:Read:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="System-Time.html#t:TimeDiff">TimeDiff</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="System-Time.html#t:TimeDiff">TimeDiff</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TimeDiff:Show:4" class="instance expander" onclick="toggleSection('i:id:TimeDiff:Show:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></span> <a href="src/System-Time.html#line-217" class="link">Source</a> <a href="#t:TimeDiff" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TimeDiff:Show:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-Time.html#t:TimeDiff">TimeDiff</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:noTimeDiff" class="def">noTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="src/System-Time.html#noTimeDiff" class="link">Source</a> <a href="#v:noTimeDiff" class="selflink">#</a></p><div class="doc"><p>null time difference.</p></div></div><div class="top"><p class="src"><a id="v:diffClockTimes" class="def">diffClockTimes</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="src/System-Time.html#diffClockTimes" class="link">Source</a> <a href="#v:diffClockTimes" class="selflink">#</a></p><div class="doc"><p><code><code><a href="System-Time.html#v:diffClockTimes">diffClockTimes</a></code> t1 t2</code> returns the difference between two clock
times <code>t1</code> and <code>t2</code> as a <code><a href="System-Time.html#t:TimeDiff">TimeDiff</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:addToClockTime" class="def">addToClockTime</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> <a href="src/System-Time.html#addToClockTime" class="link">Source</a> <a href="#v:addToClockTime" class="selflink">#</a></p><div class="doc"><p><code><code><a href="System-Time.html#v:addToClockTime">addToClockTime</a></code> d t</code> adds a time difference <code>d</code> and a
clock time <code>t</code> to yield a new clock time. The difference <code>d</code>
may be either positive or negative.</p></div></div><div class="top"><p class="src"><a id="v:normalizeTimeDiff" class="def">normalizeTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> <a href="src/System-Time.html#normalizeTimeDiff" class="link">Source</a> <a href="#v:normalizeTimeDiff" class="selflink">#</a></p><div class="doc"><p>converts a time difference to normal form.</p></div></div><div class="top"><p class="src"><a id="v:timeDiffToString" class="def">timeDiffToString</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/System-Time.html#timeDiffToString" class="link">Source</a> <a href="#v:timeDiffToString" class="selflink">#</a></p><div class="doc"><p>formats time differences using local conventions.</p></div></div><div class="top"><p class="src"><a id="v:formatTimeDiff" class="def">formatTimeDiff</a> :: <a href="file:///usr/share/doc/libghc-old-locale-doc/html/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/System-Time.html#formatTimeDiff" class="link">Source</a> <a href="#v:formatTimeDiff" class="selflink">#</a></p><div class="doc"><p>formats time differences using local conventions and a formatting string.
The formatting string is that understood by the ISO C <code>strftime()</code>
function.</p></div></div><h1 id="g:3">Calendar times</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:CalendarTime" class="def">CalendarTime</a> <a href="src/System-Time.html#CalendarTime" class="link">Source</a> <a href="#t:CalendarTime" class="selflink">#</a></p><div class="doc"><p><code><a href="System-Time.html#t:CalendarTime">CalendarTime</a></code> is a user-readable and manipulable
representation of the internal <code><a href="System-Time.html#t:ClockTime">ClockTime</a></code> type.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:CalendarTime" class="def">CalendarTime</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:ctYear" class="def">ctYear</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Year (pre-Gregorian dates are inaccurate)</p></div></li><li><dfn class="src"><a id="v:ctMonth" class="def">ctMonth</a> :: <a href="System-Time.html#t:Month">Month</a></dfn><div class="doc"><p>Month of the year</p></div></li><li><dfn class="src"><a id="v:ctDay" class="def">ctDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Day of the month (1 to 31)</p></div></li><li><dfn class="src"><a id="v:ctHour" class="def">ctHour</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Hour of the day (0 to 23)</p></div></li><li><dfn class="src"><a id="v:ctMin" class="def">ctMin</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Minutes (0 to 59)</p></div></li><li><dfn class="src"><a id="v:ctSec" class="def">ctSec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Seconds (0 to 61, allowing for up to
two leap seconds)</p></div></li><li><dfn class="src"><a id="v:ctPicosec" class="def">ctPicosec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></dfn><div class="doc"><p>Picoseconds</p></div></li><li><dfn class="src"><a id="v:ctWDay" class="def">ctWDay</a> :: <a href="System-Time.html#t:Day">Day</a></dfn><div class="doc"><p>Day of the week</p></div></li><li><dfn class="src"><a id="v:ctYDay" class="def">ctYDay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Day of the year
(0 to 364, or 365 in leap years)</p></div></li><li><dfn class="src"><a id="v:ctTZName" class="def">ctTZName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc"><p>Name of the time zone</p></div></li><li><dfn class="src"><a id="v:ctTZ" class="def">ctTZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc"><p>Variation from UTC in seconds</p></div></li><li><dfn class="src"><a id="v:ctIsDST" class="def">ctIsDST</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a></code> if Daylight Savings Time would
be in effect, and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:False">False</a></code> otherwise</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:CalendarTime" class="caption collapser" onclick="toggleSection('i:CalendarTime')">Instances</p><div id="section.i:CalendarTime" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:CalendarTime:Eq:1" class="instance expander" onclick="toggleSection('i:id:CalendarTime:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></span> <a href="src/System-Time.html#line-203" class="link">Source</a> <a href="#t:CalendarTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:CalendarTime:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:CalendarTime:Ord:2" class="instance expander" onclick="toggleSection('i:id:CalendarTime:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></span> <a href="src/System-Time.html#line-203" class="link">Source</a> <a href="#t:CalendarTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:CalendarTime:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:CalendarTime:Read:3" class="instance expander" onclick="toggleSection('i:id:CalendarTime:Read:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></span> <a href="src/System-Time.html#line-203" class="link">Source</a> <a href="#t:CalendarTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:CalendarTime:Read:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="System-Time.html#t:CalendarTime">CalendarTime</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="System-Time.html#t:CalendarTime">CalendarTime</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:CalendarTime:Show:4" class="instance expander" onclick="toggleSection('i:id:CalendarTime:Show:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></span> <a href="src/System-Time.html#line-203" class="link">Source</a> <a href="#t:CalendarTime" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:CalendarTime:Show:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-Time.html#t:CalendarTime">CalendarTime</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Month" class="def">Month</a> <a href="src/System-Time.html#Month" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></p><div class="doc"><p>A month of the year.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:January" class="def">January</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:February" class="def">February</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:March" class="def">March</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:April" class="def">April</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:May" class="def">May</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:June" class="def">June</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:July" class="def">July</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:August" class="def">August</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:September" class="def">September</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:October" class="def">October</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:November" class="def">November</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:December" class="def">December</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Month" class="caption collapser" onclick="toggleSection('i:Month')">Instances</p><div id="section.i:Month" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Bounded:1" class="instance expander" onclick="toggleSection('i:id:Month:Bounded:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Bounded:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:minBound">minBound</a> :: <a href="System-Time.html#t:Month">Month</a> <a href="#v:minBound" class="selflink">#</a></p><p class="src"><a href="#v:maxBound">maxBound</a> :: <a href="System-Time.html#t:Month">Month</a> <a href="#v:maxBound" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Enum:2" class="instance expander" onclick="toggleSection('i:id:Month:Enum:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Enum">Enum</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Enum:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:Month">Month</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="System-Time.html#t:Month">Month</a> -> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Eq:3" class="instance expander" onclick="toggleSection('i:id:Month:Eq:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Eq:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Ord:4" class="instance expander" onclick="toggleSection('i:id:Month:Ord:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="System-Time.html#t:Month">Month</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Read:5" class="instance expander" onclick="toggleSection('i:id:Month:Read:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Read:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="System-Time.html#t:Month">Month</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="System-Time.html#t:Month">Month</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Show:6" class="instance expander" onclick="toggleSection('i:id:Month:Show:6')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Show:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-Time.html#t:Month">Month</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Month:Ix:7" class="instance expander" onclick="toggleSection('i:id:Month:Ix:7')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ix.html#t:Ix">Ix</a> <a href="System-Time.html#t:Month">Month</a></span> <a href="src/System-Time.html#line-135" class="link">Source</a> <a href="#t:Month" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Month:Ix:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:range">range</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> [<a href="System-Time.html#t:Month">Month</a>] <a href="#v:range" class="selflink">#</a></p><p class="src"><a href="#v:index">index</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:index" class="selflink">#</a></p><p class="src"><a href="#v:unsafeIndex">unsafeIndex</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></p><p class="src"><a href="#v:inRange">inRange</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> <a href="System-Time.html#t:Month">Month</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:inRange" class="selflink">#</a></p><p class="src"><a href="#v:rangeSize">rangeSize</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:rangeSize" class="selflink">#</a></p><p class="src"><a href="#v:unsafeRangeSize">unsafeRangeSize</a> :: (<a href="System-Time.html#t:Month">Month</a>, <a href="System-Time.html#t:Month">Month</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Day" class="def">Day</a> <a href="src/System-Time.html#Day" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></p><div class="doc"><p>A day of the week.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Sunday" class="def">Sunday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Monday" class="def">Monday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Tuesday" class="def">Tuesday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Wednesday" class="def">Wednesday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Thursday" class="def">Thursday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Friday" class="def">Friday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Saturday" class="def">Saturday</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Day" class="caption collapser" onclick="toggleSection('i:Day')">Instances</p><div id="section.i:Day" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Bounded:1" class="instance expander" onclick="toggleSection('i:id:Day:Bounded:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Bounded:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:minBound">minBound</a> :: <a href="System-Time.html#t:Day">Day</a> <a href="#v:minBound" class="selflink">#</a></p><p class="src"><a href="#v:maxBound">maxBound</a> :: <a href="System-Time.html#t:Day">Day</a> <a href="#v:maxBound" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Enum:2" class="instance expander" onclick="toggleSection('i:id:Day:Enum:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Enum">Enum</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Enum:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:Day">Day</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="System-Time.html#t:Day">Day</a> -> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Eq:3" class="instance expander" onclick="toggleSection('i:id:Day:Eq:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Eq:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Ord:4" class="instance expander" onclick="toggleSection('i:id:Day:Ord:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="System-Time.html#t:Day">Day</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Read:5" class="instance expander" onclick="toggleSection('i:id:Day:Read:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Read:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="System-Time.html#t:Day">Day</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="System-Time.html#t:Day">Day</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Show:6" class="instance expander" onclick="toggleSection('i:id:Day:Show:6')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Show:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-Time.html#t:Day">Day</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Day:Ix:7" class="instance expander" onclick="toggleSection('i:id:Day:Ix:7')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ix.html#t:Ix">Ix</a> <a href="System-Time.html#t:Day">Day</a></span> <a href="src/System-Time.html#line-142" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Day:Ix:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:range">range</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> [<a href="System-Time.html#t:Day">Day</a>] <a href="#v:range" class="selflink">#</a></p><p class="src"><a href="#v:index">index</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:index" class="selflink">#</a></p><p class="src"><a href="#v:unsafeIndex">unsafeIndex</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></p><p class="src"><a href="#v:inRange">inRange</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> <a href="System-Time.html#t:Day">Day</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:inRange" class="selflink">#</a></p><p class="src"><a href="#v:rangeSize">rangeSize</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:rangeSize" class="selflink">#</a></p><p class="src"><a href="#v:unsafeRangeSize">unsafeRangeSize</a> :: (<a href="System-Time.html#t:Day">Day</a>, <a href="System-Time.html#t:Day">Day</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:toCalendarTime" class="def">toCalendarTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="src/System-Time.html#toCalendarTime" class="link">Source</a> <a href="#v:toCalendarTime" class="selflink">#</a></p><div class="doc"><p>converts an internal clock time to a local time, modified by the
timezone and daylight savings time settings in force at the time
of conversion. Because of this dependence on the local environment,
<code><a href="System-Time.html#v:toCalendarTime">toCalendarTime</a></code> is in the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a></code> monad.</p></div></div><div class="top"><p class="src"><a id="v:toUTCTime" class="def">toUTCTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> <a href="src/System-Time.html#toUTCTime" class="link">Source</a> <a href="#v:toUTCTime" class="selflink">#</a></p><div class="doc"><p>converts an internal clock time into a <code><a href="System-Time.html#t:CalendarTime">CalendarTime</a></code> in standard
UTC format.</p></div></div><div class="top"><p class="src"><a id="v:toClockTime" class="def">toClockTime</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</a> <a href="src/System-Time.html#toClockTime" class="link">Source</a> <a href="#v:toClockTime" class="selflink">#</a></p><div class="doc"><p>converts a <code><a href="System-Time.html#t:CalendarTime">CalendarTime</a></code> into the corresponding internal
<code><a href="System-Time.html#t:ClockTime">ClockTime</a></code>, ignoring the contents of the <code><a href="System-Time.html#v:ctWDay">ctWDay</a></code>, <code><a href="System-Time.html#v:ctYDay">ctYDay</a></code>,
<code><a href="System-Time.html#v:ctTZName">ctTZName</a></code> and <code><a href="System-Time.html#v:ctIsDST">ctIsDST</a></code> fields.</p></div></div><div class="top"><p class="src"><a id="v:calendarTimeToString" class="def">calendarTimeToString</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/System-Time.html#calendarTimeToString" class="link">Source</a> <a href="#v:calendarTimeToString" class="selflink">#</a></p><div class="doc"><p>formats calendar times using local conventions.</p></div></div><div class="top"><p class="src"><a id="v:formatCalendarTime" class="def">formatCalendarTime</a> :: <a href="file:///usr/share/doc/libghc-old-locale-doc/html/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/System-Time.html#formatCalendarTime" class="link">Source</a> <a href="#v:formatCalendarTime" class="selflink">#</a></p><div class="doc"><p>formats calendar times using local conventions and a formatting string.
The formatting string is that understood by the ISO C <code>strftime()</code>
function.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|