Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > ec5844e219498f2057da8f8f3070d4a1 > files > 178

ghc-MissingH-devel-1.1.0.3-2.fc14.i686.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
>System.Time.ParseDate</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_System-Time-ParseDate.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"
>MissingH-1.1.0.3: Large utility library</TD
><TD CLASS="topbut"
><A HREF="src/System-Time-ParseDate.html"
>Source code</A
></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"
>System.Time.ParseDate</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>Bjrn Bringert</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>Utility for parsing dates.
</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%3AparseCalendarTime"
>parseCalendarTime</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Locale.html#t%3ATimeLocale"
>TimeLocale</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Time.html#t%3ACalendarTime"
>CalendarTime</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:parseCalendarTime"
><A NAME="v%3AparseCalendarTime"
></A
></A
><B
>parseCalendarTime</B
></TD
><TD CLASS="declbut"
><A HREF="src/System-Time-ParseDate.html#parseCalendarTime"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Locale.html#t%3ATimeLocale"
>TimeLocale</A
></TD
><TD CLASS="rdoc"
>Time locale
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
>Date format
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
>String to parse
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Time.html#t%3ACalendarTime"
>CalendarTime</A
></TD
><TD CLASS="rdoc"
><TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> if parsing failed.
</TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Parse a date string as formatted by <TT
><A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Time.html#v%3AformatCalendarTime"
>formatCalendarTime</A
></TT
>.
</P
><P
>The resulting <TT
><A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Time.html#t%3ACalendarTime"
>CalendarTime</A
></TT
> will only have those fields set that
   are represented by a format specifier in the format string, and those
   fields will be set to the values given in the date string.
   If the same field is specified multiple times, the rightmost
   occurence takes precedence.
</P
><P
>The resulting date is not neccessarily a valid date. For example,
   if there is no day of the week specifier in the format string,
   the value of <TT
><A HREF="/usr/share/doc/ghc/html/libraries/haskell98-1.0.1.1/Time.html#v%3ActWDay"
>ctWDay</A
></TT
> will most likely be invalid.
</P
><P
>Format specifiers are % followed by some character. All other
   characters are treated literally. Whitespace in the format string
   matches zero or more arbitrary whitespace characters.
</P
><P
>Format specifiers marked with * are matched, but do not set any
   field in the output.
</P
><P
>Some of the format specifiers are marked as space-padded or
   zero-padded. Regardless of this, space-padded, zero-padded
   or unpadded inputs are accepted. Note that strings using
   unpadded fields without separating the fields may cause
   strange parsing.
</P
><P
>Supported format specfiers:
</P
><DL
><DT
>%%</DT
><DD
>   a % character.
</DD
><DT
>%a</DT
><DD
>   locale's abbreviated weekday name (Sun ... Sat)
</DD
><DT
>%A</DT
><DD
>   locale's full weekday name (Sunday .. Saturday)
</DD
><DT
>%b</DT
><DD
>   locale's abbreviated month name (Jan..Dec)
</DD
><DT
>%B</DT
><DD
>   locale's full month name (January..December)
</DD
><DT
>%c</DT
><DD
>   locale's date and time format (Thu Mar 25 17:47:03 CET 2004)
</DD
><DT
>%C</DT
><DD
>   century [00-99]
</DD
><DT
>%d</DT
><DD
>   day of month, zero padded (01..31)
</DD
><DT
>%D</DT
><DD
>   date (%m/%d/%y)
</DD
><DT
>%e</DT
><DD
>   day of month, space padded ( 1..31)
</DD
><DT
>%h</DT
><DD
>   same as %b
</DD
><DT
>%H</DT
><DD
>   hour, 24-hour clock, zero padded (00..23)
</DD
><DT
>%I</DT
><DD
>   hour, 12-hour clock, zero padded (01..12)
</DD
><DT
>%j</DT
><DD
>   day of the year, zero padded (001..366)
</DD
><DT
>%k</DT
><DD
>   hour, 24-hour clock, space padded ( 0..23)
</DD
><DT
>%l</DT
><DD
>   hour, 12-hour clock, space padded ( 1..12)
</DD
><DT
>%m</DT
><DD
>   month, zero padded (01..12)
</DD
><DT
>%M</DT
><DD
>   minute, zero padded (00..59)
</DD
><DT
>%n</DT
><DD
>   a newline character
</DD
><DT
>%p</DT
><DD
>   locale's AM or PM indicator
</DD
><DT
>%r</DT
><DD
>   locale's 12-hour time format (hh:mm:ss AM/PM)
</DD
><DT
>%R</DT
><DD
>   hours and minutes, 24-hour clock (hh:mm)
</DD
><DT
>%s</DT
><DD
>   * seconds since '00:00:00 1970-01-01 UTC'
</DD
><DT
>%S</DT
><DD
>   seconds, zero padded (00..59)
</DD
><DT
>%t</DT
><DD
>   a horizontal tab character
</DD
><DT
>%T</DT
><DD
>   time, 24-hour clock (hh:mm:ss)
</DD
><DT
>%u</DT
><DD
>   numeric day of the week (1=Monday, 7=Sunday)
</DD
><DT
>%U</DT
><DD
>   * week number, weeks starting on Sunday, zero padded (01-53)
</DD
><DT
>%V</DT
><DD
>   * week number (as per ISO-8601),
             week 1 is the first week with a Thursday,
             zero padded, (01-53)
</DD
><DT
>%w</DT
><DD
>   numeric day of the week, (0=Sunday, 6=Monday)
</DD
><DT
>%W</DT
><DD
>   * week number, weeks starting on Monday, zero padded (01-53)
</DD
><DT
>%x</DT
><DD
>   locale's preferred way of printing dates (%m/%d/%y)
</DD
><DT
>%X</DT
><DD
>   locale's preferred way of printing time. (%H:%M:%S)
</DD
><DT
>%y</DT
><DD
>   year, within century, zero padded (00..99)
</DD
><DT
>%Y</DT
><DD
>   year, including century. Not padded
           (this is probably a bug, but formatCalendarTime does
           it this way). (0-9999)
</DD
><DT
>%Z</DT
><DD
>   time zone abbreviation (e.g. CET) or RFC-822 style numeric
           timezone (-0500) 
</DD
></DL
></TD
></TR
></TABLE
></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.6.1</TD
></TR
></TABLE
></BODY
></HTML
>