<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="functions" subpage="adjusttociviltime"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: saxon:adjust-to-civil-time()</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: saxon:adjust-to-civil-time()"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:adjust-to-civil-time()</h1>
      <p><b>adjust-to-civil-time($in as xs:dateTime?, $tz as xs:string) ==&gt; xs:dateTime?</b></p>
      <p>If the input is an empty sequence, the result is an empty sequence.</p>
      <p>Otherwise the input dateTime is adjusted to a dateTime in the civil timezone named in the second argument.
This uses Olson timezone names, for example <code>America/New_York</code> or <code>Europe/Paris</code>. For example,</p>
      <ul>
         <li content="para">
            <p>
               <code>adjust-to-civil-time(xs:dateTime('2008-01-10T12:00:00Z', 'America/New_York')</code>
returns <code>2008-01-10T07:00:00-05:00</code>
            </p>
         </li>
         <li content="para">
            <p>
               <code>adjust-to-civil-time(xs:dateTime('2008-07-10T12:00:00Z', 'America/New_York')</code>
returns <code>2008-07-10T08:00:00-04:00</code>
            </p>
         </li>
      </ul>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="analyze-string.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>