<!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 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="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">old-time-1.1.0.0: Time library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Trustworthy</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="../base-4.5.1.0/Prelude.html#t:Integer">Integer</a> <a href="../base-4.5.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:getClockTime">getClockTime</a> :: <a href="../base-4.5.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="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdMonth">tdMonth</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdDay">tdDay</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdHour">tdHour</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdMin">tdMin</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdSec">tdSec</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:tdPicosec">tdPicosec</a> :: <a href="../base-4.5.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="../base-4.5.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:formatTimeDiff">formatTimeDiff</a> :: <a href="../old-locale-1.0.0.4/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="../base-4.5.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="../base-4.5.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="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctHour">ctHour</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctMin">ctMin</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctSec">ctSec</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctPicosec">ctPicosec</a> :: <a href="../base-4.5.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="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctTZName">ctTZName</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:ctTZ">ctTZ</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:ctIsDST">ctIsDST</a> :: <a href="../base-4.5.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="../base-4.5.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="../base-4.5.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:formatCalendarTime">formatCalendarTime</a> :: <a href="../old-locale-1.0.0.4/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="../base-4.5.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 name="t:ClockTime" class="def">ClockTime</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 name="v:TOD" class="def">TOD</a> <a href="../base-4.5.1.0/Prelude.html#t:Integer">Integer</a> <a href="../base-4.5.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"><a href="../base-4.5.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getClockTime" class="def">getClockTime</a> :: <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:ClockTime">ClockTime</a></p></div><h1 id="g:2">Time differences </h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TimeDiff" class="def">TimeDiff</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 name="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><dl><dt class="src"><a name="v:tdYear" class="def">tdYear</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdMonth" class="def">tdMonth</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdDay" class="def">tdDay</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdHour" class="def">tdHour</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdMin" class="def">tdMin</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdSec" class="def">tdSec</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:tdPicosec" class="def">tdPicosec</a> :: <a href="../base-4.5.1.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></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"><a href="../base-4.5.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:noTimeDiff" class="def">noTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a></p><div class="doc"><p>null time difference. </p></div></div><div class="top"><p class="src"><a name="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></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 name="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></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 name="v:normalizeTimeDiff" class="def">normalizeTimeDiff</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a></p><div class="doc"><p>converts a time difference to normal form. </p></div></div><div class="top"><p class="src"><a name="v:timeDiffToString" class="def">timeDiffToString</a> :: <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a></p><div class="doc"><p>formats time differences using local conventions. </p></div></div><div class="top"><p class="src"><a name="v:formatTimeDiff" class="def">formatTimeDiff</a> :: <a href="../old-locale-1.0.0.4/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</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 name="t:CalendarTime" class="def">CalendarTime</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 name="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><dl><dt class="src"><a name="v:ctYear" class="def">ctYear</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Year (pre-Gregorian dates are inaccurate) </p></dd><dt class="src"><a name="v:ctMonth" class="def">ctMonth</a> :: <a href="System-Time.html#t:Month">Month</a></dt><dd class="doc"><p>Month of the year </p></dd><dt class="src"><a name="v:ctDay" class="def">ctDay</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Day of the month (1 to 31) </p></dd><dt class="src"><a name="v:ctHour" class="def">ctHour</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Hour of the day (0 to 23) </p></dd><dt class="src"><a name="v:ctMin" class="def">ctMin</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Minutes (0 to 59) </p></dd><dt class="src"><a name="v:ctSec" class="def">ctSec</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Seconds (0 to 61, allowing for up to two leap seconds) </p></dd><dt class="src"><a name="v:ctPicosec" class="def">ctPicosec</a> :: <a href="../base-4.5.1.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Picoseconds </p></dd><dt class="src"><a name="v:ctWDay" class="def">ctWDay</a> :: <a href="System-Time.html#t:Day">Day</a></dt><dd class="doc"><p>Day of the week </p></dd><dt class="src"><a name="v:ctYDay" class="def">ctYDay</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Day of the year (0 to 364, or 365 in leap years) </p></dd><dt class="src"><a name="v:ctTZName" class="def">ctTZName</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Name of the time zone </p></dd><dt class="src"><a name="v:ctTZ" class="def">ctTZ</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Variation from UTC in seconds </p></dd><dt class="src"><a name="v:ctIsDST" class="def">ctIsDST</a> :: <a href="../base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p><code><a href="../base-4.5.1.0/Data-Bool.html#v:True">True</a></code> if Daylight Savings Time would be in effect, and <code><a href="../base-4.5.1.0/Data-Bool.html#v:False">False</a></code> otherwise </p></dd></dl><div class="clear"></div></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"><a href="../base-4.5.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Month" class="def">Month</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 name="v:January" class="def">January</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:February" class="def">February</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:March" class="def">March</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:April" class="def">April</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:May" class="def">May</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:June" class="def">June</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:July" class="def">July</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:August" class="def">August</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:September" class="def">September</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:October" class="def">October</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:November" class="def">November</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="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"><a href="../base-4.5.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Prelude.html#t:Enum">Enum</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ix.html#t:Ix">Ix</a> <a href="System-Time.html#t:Month">Month</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Day" class="def">Day</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 name="v:Sunday" class="def">Sunday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Monday" class="def">Monday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Tuesday" class="def">Tuesday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Wednesday" class="def">Wednesday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Thursday" class="def">Thursday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Friday" class="def">Friday</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="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"><a href="../base-4.5.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Prelude.html#t:Enum">Enum</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Read.html#t:Read">Read</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Text-Show.html#t:Show">Show</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="../base-4.5.1.0/Data-Ix.html#t:Ix">Ix</a> <a href="System-Time.html#t:Day">Day</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:toCalendarTime" class="def">toCalendarTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="System-Time.html#t:CalendarTime">CalendarTime</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="../base-4.5.1.0/System-IO.html#t:IO">IO</a></code> monad. </p></div></div><div class="top"><p class="src"><a name="v:toUTCTime" class="def">toUTCTime</a> :: <a href="System-Time.html#t:ClockTime">ClockTime</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</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 name="v:toClockTime" class="def">toClockTime</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="System-Time.html#t:ClockTime">ClockTime</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 name="v:calendarTimeToString" class="def">calendarTimeToString</a> :: <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a></p><div class="doc"><p>formats calendar times using local conventions. </p></div></div><div class="top"><p class="src"><a name="v:formatCalendarTime" class="def">formatCalendarTime</a> :: <a href="../old-locale-1.0.0.4/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -> <a href="System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="../base-4.5.1.0/Data-String.html#t:String">String</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.11.0</p></div></body></html>