Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 70ec89744a04da80369b4702b2c37256 > files > 1766

ghc-doc-6.10.4-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Data.Time.Calendar.Julian</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Data-Time-Calendar-Julian.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>time-1.1.4: A time library</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Data.Time.Calendar.Julian</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Year and day format
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AtoJulianYearAndDay"
>toJulianYearAndDay</A
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; (<A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfromJulianYearAndDay"
>fromJulianYearAndDay</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfromJulianYearAndDayValid"
>fromJulianYearAndDayValid</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AshowJulianYearAndDay"
>showJulianYearAndDay</A
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AisJulianLeapYear"
>isJulianLeapYear</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtoJulian"
>toJulian</A
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; (<A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfromJulian"
>fromJulian</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfromJulianValid"
>fromJulianValid</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AshowJulian"
>showJulian</A
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AjulianMonthLength"
>julianMonthLength</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AaddJulianMonthsClip"
>addJulianMonthsClip</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AaddJulianMonthsRollOver"
>addJulianMonthsRollOver</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AaddJulianYearsClip"
>addJulianYearsClip</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AaddJulianYearsRollOver"
>addJulianYearsRollOver</A
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Year and day format
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:toJulianYearAndDay"
><A NAME="v%3AtoJulianYearAndDay"
></A
></A
><B
>toJulianYearAndDay</B
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; (<A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>convert to proleptic Julian year and day format. First element of result is year (proleptic Julian calendar),
 second is the day of the year, with 1 for Jan 1, and 365 (or 366 in leap years) for Dec 31.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:fromJulianYearAndDay"
><A NAME="v%3AfromJulianYearAndDay"
></A
></A
><B
>fromJulianYearAndDay</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>convert from proleptic Julian year and day format.
 Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:fromJulianYearAndDayValid"
><A NAME="v%3AfromJulianYearAndDayValid"
></A
></A
><B
>fromJulianYearAndDayValid</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>convert from proleptic Julian year and day format.
 Invalid day numbers will return Nothing
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:showJulianYearAndDay"
><A NAME="v%3AshowJulianYearAndDay"
></A
></A
><B
>showJulianYearAndDay</B
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="doc"
>show in proleptic Julian year and day format (yyyy-ddd)
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:isJulianLeapYear"
><A NAME="v%3AisJulianLeapYear"
></A
></A
><B
>isJulianLeapYear</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="doc"
>Is this year a leap year according to the proleptic Julian calendar?
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:toJulian"
><A NAME="v%3AtoJulian"
></A
></A
><B
>toJulian</B
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; (<A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>, <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>convert to proleptic Julian calendar. First element of result is year, second month number (1-12), third day (1-31).
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:fromJulian"
><A NAME="v%3AfromJulian"
></A
></A
><B
>fromJulian</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>convert from proleptic Julian calendar. First argument is year, second month number (1-12), third day (1-31).
 Invalid values will be clipped to the correct range, month first, then day.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:fromJulianValid"
><A NAME="v%3AfromJulianValid"
></A
></A
><B
>fromJulianValid</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../base/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>convert from proleptic Julian calendar. First argument is year, second month number (1-12), third day (1-31).
 Invalid values will return Nothing.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:showJulian"
><A NAME="v%3AshowJulian"
></A
></A
><B
>showJulian</B
> :: <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="../base/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="doc"
>show in ISO 8601 format (yyyy-mm-dd)
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:julianMonthLength"
><A NAME="v%3AjulianMonthLength"
></A
></A
><B
>julianMonthLength</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
> -&gt; <A HREF="../ghc-prim/GHC-Types.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="doc"
>The number of days in a given month according to the proleptic Julian calendar. First argument is year, second is month.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:addJulianMonthsClip"
><A NAME="v%3AaddJulianMonthsClip"
></A
></A
><B
>addJulianMonthsClip</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>Add months, with days past the last day of the month clipped to the last day.
 For instance, 2005-01-30 + 1 month = 2005-02-28.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:addJulianMonthsRollOver"
><A NAME="v%3AaddJulianMonthsRollOver"
></A
></A
><B
>addJulianMonthsRollOver</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>Add months, with days past the last day of the month rolling over to the next month.
 For instance, 2005-01-30 + 1 month = 2005-03-02.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:addJulianYearsClip"
><A NAME="v%3AaddJulianYearsClip"
></A
></A
><B
>addJulianYearsClip</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary.
 For instance, 2004-02-29 + 2 years = 2006-02-28.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:addJulianYearsRollOver"
><A NAME="v%3AaddJulianYearsRollOver"
></A
></A
><B
>addJulianYearsRollOver</B
> :: <A HREF="../integer/GHC-Integer.html#t%3AInteger"
>Integer</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
> -&gt; <A HREF="Data-Time-Calendar.html#t%3ADay"
>Day</A
></TD
></TR
><TR
><TD CLASS="doc"
>Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary.
 For instance, 2004-02-29 + 2 years = 2006-03-01.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.4.2</TD
></TR
></TABLE
></BODY
></HTML
>