<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK
href="cid:filelist.xml@01C2E4CD.66613370" rel=File-List><o:SmartTagType
name="State"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:56.7pt 42.5pt 56.7pt 85.05pt;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=RU style="tab-interval: 35.4pt" vLink=purple link=blue
bgColor=#ffffff>
<DIV><FONT size=2>There are some helper functions, but whether they do what you
need is another question. That depends on your specific problem.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>See the documentation for httpd_util and calendar, for
example.</FONT></DIV>
<DIV><FONT size=2><A
href="http://www.erlang.org/doc/r9b/lib/inets-3.0/doc/html/httpd_util.html">http://www.erlang.org/doc/r9b/lib/inets-3.0/doc/html/httpd_util.html</A></FONT></DIV>
<DIV><FONT size=2><A
href="http://www.erlang.org/doc/r9b/lib/stdlib-1.11.0/doc/html/calendar.html">http://www.erlang.org/doc/r9b/lib/stdlib-1.11.0/doc/html/calendar.html</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>/Uffe</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Erlang (BEAM) emulator version 5.2 [threads:0]</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Eshell V5.2 (abort with ^G)</FONT></DIV>
<DIV><FONT size=2>1> httpd_util:rfc1123_date().<BR>"Sat, 08 Mar 2003 16:19:58
GMT"</FONT></DIV>
<DIV><FONT size=2>2>
httpd_util:rfc1123_date({{1888,05,17},{08,15,34}}).<BR>"Thu, 17 May 1888
08:15:34 GMT"</FONT></DIV>
<DIV><FONT size=2>3> httpd_util:convert_request_date("Sun Nov 6
08:49:37 1994").<BR>{{1994,11,6},{8,49,37}}</FONT></DIV>
<DIV><FONT size=2>4>
calendar:date_to_gregorian_days(date()).<BR>731647<BR>5>
calendar:datetime_to_gregorian_seconds({date(),time()}).<BR>63214363500</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=victoriak@futuresource.com
href="mailto:victoriak@futuresource.com">Victoria Kulikou</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=erlang-questions@erlang.org
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> den 8 mars 2003 00:17</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> How to convert string
representation of Date and Time to integer in Erlang and vice versa?</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Is there
a library in Erlang that provides conversion of Date and Time from string to
integer and from integer to string?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Sincerely,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:State><st1:place><FONT face=Arial size=2><SPAN
lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Victoria</SPAN></FONT></st1:place></st1:State><FONT
face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">.<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>