<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title>Class DT_TIME_ZONE</title>
</head>

<body bgcolor="#FFFFFF">

<table border="0" width="100%">
    <tr>
        <td><font size="6"><strong>Class DT_TIME_ZONE</strong></font></td>
        <td align="right"><a href="dt_time_value.html"><img
        src="../../image/previous.gif" alt="Previous" border="0"
        width="40" height="40"></a><a
        href="dt_utc_system_clock.html"><img
        src="../../image/next.gif" alt="Next" border="0"
        width="40" height="40"></a></td>
    </tr>
</table>

<hr size="1">

<pre><font color="#000080"><em><strong>note</strong></em></font></pre>

<blockquote>
    <pre><em>description</em>:

<font color="#800000"><em>    &quot;Time zones&quot;

</em></font><em>library:    </em><font color="#800000"><em>&quot;Gobo Eiffel Time Library&quot;
</em></font><em>author:     </em><font color="#800000"><em>&quot;Eric Bezault &lt;</em></font><a
href="mailto:ericb@gobosoft.com"><font color="#800000"><em>ericb@gobosoft.com</em></font></a><font
color="#800000"><em>&gt;&quot;
</em></font><em>copyright:  </em><font color="#800000"><em>&quot;Copyright (c) 2001, Eric Bezault and others&quot;
</em></font><em>license:   </em><font color="#800000"><em> &quot;MIT License&quot;</em></font></pre>
</blockquote>

<pre><font color="#000080"><em><strong>deferred class interface</strong></em></font></pre>

<blockquote>
    <pre><em>DT_TIME_ZONE</em></pre>
</blockquote>

<pre><font color="#000080"><em><strong>feature </strong></em></font><font
color="#008000">-- Access</font></pre>

<blockquote>
    <pre><a name="name"><em>name</em></a>:<em> </em><a
href="http://www.gobosoft.com/eiffel/nice/elks95/string.html"><em>STRING</em></a><em>
</em><font color="#008000">        -- Time zone name</font></pre>
    <pre><a name="abbreviation"><em>abbreviation</em></a>:<em> </em><a
href="http://www.gobosoft.com/eiffel/nice/elks95/string.html"><em>STRING</em></a><em>
</em><font color="#008000">        -- Time zone abbreviation</font></pre>
    <pre><a name="offset"><em>offset</em></a>:<em> </em><a
href="dt_time_duration.html"><em>DT_TIME_DURATION</em></a><em>
</em><font color="#008000">        -- GMT offset</font></pre>
</blockquote>

<pre><font color="#000080"><em><strong>feature</strong></em></font> <font
color="#008000">-- Conversion</font></pre>

<blockquote>
    <pre><a name="date_time_to_utc"><em>date_time_to_utc</em></a><em> </em>(<em>a_date_time</em>:<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a>):<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a><em>
</em><font color="#008000">        -- Convert </font><em>a_date_time</em><font
color="#008000">, considered to be relative to current
        -- time zone, into the same time but relative to UTC.
        -- (Create a new date_time object at each call.)</font><em>
    </em><font color="#000080"><em><strong>require</strong></em></font><em>
        a_date_time_not_void</em>:<em> a_date_time </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
    </em><font color="#000080"><em><strong>ensure</strong></em></font><em>
        date_time_not_void</em>:<em> </em><font color="#008080"><em>Result</em></font><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font></pre>
    <pre><a name="date_time_from_utc"><em>date_time_from_utc</em></a><em> </em>(<em>a_date_time</em>:<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a>):<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a><em>
</em><font color="#008000">        -- Convert </font><em>a_date_time</em><font
color="#008000">, considered to be relative to UTC,
        -- into the same time but relative to current time zone.
        -- (Create a new date_time object at each call.)</font><em>
    </em><font color="#000080"><em><strong>require</strong></em></font><em>
        a_date_time_not_void</em>:<em> a_date_time </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
    </em><font color="#000080"><em><strong>ensure</strong></em></font><em>
        date_time_not_void</em>:<em> </em><font color="#008080"><em>Result</em></font><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font></pre>
    <pre><a name="date_time_from"><em>date_time_from</em></a><em> </em>(<em>a_date_time</em>:<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a>;<em> a_time_zone</em>:<em> </em><a
href="dt_time_zone.html"><em>DT_TIME_ZONE</em></a>):<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a><em>
</em><font color="#008000">        -- Convert </font><em>a_date_time</em><font
color="#008000">, considered to be relative to </font><em>a_time_zone</em><font
color="#008000">,
        -- into the same time but relative to current time zone.
        -- (Create a new date_time object at each call.)</font><em>
    </em><font color="#000080"><em><strong>require</strong></em></font><em>
        a_date_time_not_void</em>:<em> a_date_time </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
        a_time_zone_not_void</em>:<em> a_time_zone </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
    </em><font color="#000080"><em><strong>ensure</strong></em></font><em>
        date_time_not_void</em>:<em> </em><font color="#008080"><em>Result</em></font><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font></pre>
    <pre><a name="convert_to_utc"><em>convert_to_utc</em></a><em> </em>(<em>a_date_time</em>:<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a>)<em>
</em><font color="#008000">        -- Convert </font><em>a_date_time</em><font
color="#008000">, considered to be relative to current
        -- time zone, into the same time but relative to UTC.
        -- (</font><em>a_date_time</em><font color="#008000"> will be altered by the call.)</font><em>
    </em><font color="#000080"><em><strong>require</strong></em></font><em>
        a_date_time_not_void</em>:<em> a_date_time </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
    </em><font color="#000080"><em><strong>deferred</strong></em></font></pre>
    <pre><a name="convert_from_utc"><em>convert_from_utc</em></a><em> </em>(<em>a_date_time</em>:<em> </em><a
href="dt_date_time.html"><em>DT_DATE_TIME</em></a>)<em>
</em><font color="#008000">        -- Convert </font><em>a_date_time</em><font
color="#008000">, considered to be relative to UTC,
        -- into the same time but relative to current time zone.
        -- (</font><em>a_date_time</em><font color="#008000"> will be altered by the call.)</font><em>
    </em><font color="#000080"><em><strong>require</strong></em></font><em>
        a_date_time_not_void</em>:<em> a_date_time </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
    </em><font color="#000080"><em><strong>deferred</strong></em></font></pre>
</blockquote>

<pre><a name="invariant"><font color="#000080"><em><strong>invariant</strong></em></font></a></pre>

<blockquote>
    <pre><em>name_not_void</em>:<em> </em><a href="#name"><em>name</em></a><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
abbreviation_not_void</em>:<em> </em><a href="#abbreviation"><em>abbreviation</em></a><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font><em>
offset_not_void</em>:<em> </em><a href="#offset"><em>offset</em></a><em> </em>/=<em> </em><font
color="#008080"><em>Void</em></font></pre>
</blockquote>

<pre><font color="#000080"><em><strong>end</strong></em></font><font
color="#008000"> -- class DT_TIME_ZONE</font></pre>

<hr size="1">

<table border="0" width="100%">
    <tr>
        <td><address>
            <font size="2"><b>Copyright © 2001</b></font><font
            size="1"><b>, </b></font><font size="2"><strong>Eric
            Bezault</strong></font><strong> </strong><font
            size="2"><br>
            <strong>mailto:</strong></font><a
            href="mailto:ericb@gobosoft.com"><font size="2">ericb@gobosoft.com</font></a><font
            size="2"><br>
            <strong>http:</strong></font><a
            href="http://www.gobosoft.com"><font size="2">//www.gobosoft.com</font></a><font
            size="2"><br>
            <strong>Last Updated:</strong> 10 April 2001</font><br>
            <!--webbot bot="PurpleText"
            preview="
$Date$
$Revision$"
            -->
        </address>
        </td>
        <td align="right" valign="top"><a
        href="http://www.gobosoft.com"><img
        src="../../image/home.gif" alt="Home" border="0"
        width="40" height="40"></a><a href="index.html"><img
        src="../../image/toc.gif" alt="Toc" border="0" width="40"
        height="40"></a><a href="dt_time_value.html"><img
        src="../../image/previous.gif" alt="Previous" border="0"
        width="40" height="40"></a><a
        href="dt_utc_system_clock.html"><img
        src="../../image/next.gif" alt="Next" border="0"
        width="40" height="40"></a></td>
    </tr>
</table>
</body>
</html>
