Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 796

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: utmscale.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>utmscale.h</h1><a href="utmscale_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">*******************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) 2004 - 2008, International Business Machines Corporation and</span>
<a name="l00004"></a>00004 <span class="comment">* others. All Rights Reserved.</span>
<a name="l00005"></a>00005 <span class="comment">*******************************************************************************</span>
<a name="l00006"></a>00006 <span class="comment">*/</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef UTMSCALE_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define UTMSCALE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00202"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2">00202</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2" title="UDateTimeScale values are used to specify the time scale used for conversion into...">UDateTimeScale</a> {
<a name="l00209"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a93031d37dd16809a029d02a4c6ac212e">00209</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a93031d37dd16809a029d02a4c6ac212e" title="Used in the JDK.">UDTS_JAVA_TIME</a> = 0,
<a name="l00210"></a>00210 
<a name="l00217"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ad0fff1454d55ce16fe1d8a4a2a7d51d8">00217</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ad0fff1454d55ce16fe1d8a4a2a7d51d8" title="Used on Unix systems.">UDTS_UNIX_TIME</a>,
<a name="l00218"></a>00218     
<a name="l00225"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a5f07c8f530c944d23408dfbc2d51816a">00225</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a5f07c8f530c944d23408dfbc2d51816a" title="Used in IUC4C.">UDTS_ICU4C_TIME</a>,
<a name="l00226"></a>00226     
<a name="l00233"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a1d265e0bb29c72318b9254c2900d3634">00233</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a1d265e0bb29c72318b9254c2900d3634" title="Used in Windows for file times.">UDTS_WINDOWS_FILE_TIME</a>,
<a name="l00234"></a>00234     
<a name="l00241"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2af95aed94ad1fc1177260bfeb4b43ae5a">00241</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2af95aed94ad1fc1177260bfeb4b43ae5a" title="Used in the .NET framework&amp;#39;s System.DateTime structure.">UDTS_DOTNET_DATE_TIME</a>,
<a name="l00242"></a>00242     
<a name="l00249"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a37910827df37bcdf0dc60557dde33a83">00249</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a37910827df37bcdf0dc60557dde33a83" title="Used in older Macintosh systems.">UDTS_MAC_OLD_TIME</a>,
<a name="l00250"></a>00250     
<a name="l00257"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ab739c4491f4d86c50fff8e36fe275544">00257</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ab739c4491f4d86c50fff8e36fe275544" title="Used in newer Macintosh systems.">UDTS_MAC_TIME</a>,
<a name="l00258"></a>00258     
<a name="l00265"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ab579d391e5c2499195f8654b05c9a884">00265</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2ab579d391e5c2499195f8654b05c9a884" title="Used in Excel.">UDTS_EXCEL_TIME</a>,
<a name="l00266"></a>00266     
<a name="l00273"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2aabe7bd5a2d0169a44577139b77a2f0e0">00273</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2aabe7bd5a2d0169a44577139b77a2f0e0" title="Used in DB2.">UDTS_DB2_TIME</a>,
<a name="l00274"></a>00274 
<a name="l00282"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2af0b38e02193e21d520d7efd81d31baa4">00282</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2af0b38e02193e21d520d7efd81d31baa4" title="Data is a long.">UDTS_UNIX_MICROSECONDS_TIME</a>,
<a name="l00283"></a>00283 
<a name="l00287"></a><a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a79a0b568c55949241360f72039d583f5">00287</a>     <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2a79a0b568c55949241360f72039d583f5" title="The first unused time scale value.">UDTS_MAX_SCALE</a>
<a name="l00288"></a>00288 } <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2" title="UDateTimeScale values are used to specify the time scale used for conversion into...">UDateTimeScale</a>;
<a name="l00289"></a>00289 
<a name="l00298"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670d">00298</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670d" title="UTimeScaleValue values are used to specify the time scale values to utmscale_getTimeScaleValue...">UTimeScaleValue</a> {
<a name="l00307"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da3c8efff753b833b7742abb7d3ccc3bca">00307</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da3c8efff753b833b7742abb7d3ccc3bca" title="The constant used to select the units vale for a time scale.">UTSV_UNITS_VALUE</a> = 0,
<a name="l00308"></a>00308 
<a name="l00317"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670dae913ed41faead84de80cbabc32264c5f">00317</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670dae913ed41faead84de80cbabc32264c5f" title="The constant used to select the epoch offset value for a time scale.">UTSV_EPOCH_OFFSET_VALUE</a>=1,
<a name="l00318"></a>00318 
<a name="l00327"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da6bda623b0ab219d8700327af6c1dc943">00327</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da6bda623b0ab219d8700327af6c1dc943" title="The constant used to select the minimum from value for a time scale.">UTSV_FROM_MIN_VALUE</a>=2,
<a name="l00328"></a>00328 
<a name="l00337"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daf8813031fb99d41d6e909c2b77baeccd">00337</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daf8813031fb99d41d6e909c2b77baeccd" title="The constant used to select the maximum from value for a time scale.">UTSV_FROM_MAX_VALUE</a>=3,
<a name="l00338"></a>00338 
<a name="l00347"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da35b1221a1b8eac335c48d17310c04eeb">00347</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da35b1221a1b8eac335c48d17310c04eeb" title="The constant used to select the minimum to value for a time scale.">UTSV_TO_MIN_VALUE</a>=4,
<a name="l00348"></a>00348 
<a name="l00357"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da495c1ea76d0de080cab8a702e7a58209">00357</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da495c1ea76d0de080cab8a702e7a58209" title="The constant used to select the maximum to value for a time scale.">UTSV_TO_MAX_VALUE</a>=5,
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 <span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span>
<a name="l00360"></a>00360 <span class="preprocessor"></span>
<a name="l00371"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670dab6df86a91298b494457c9d0cf949481d">00371</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670dab6df86a91298b494457c9d0cf949481d" title="The constant used to select the epoch plus one value for a time scale.">UTSV_EPOCH_OFFSET_PLUS_1_VALUE</a>=6,
<a name="l00372"></a>00372 
<a name="l00384"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da266bb95ac5bb1a1672dd232a8e4f60ea">00384</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da266bb95ac5bb1a1672dd232a8e4f60ea" title="The constant used to select the epoch plus one value for a time scale.">UTSV_EPOCH_OFFSET_MINUS_1_VALUE</a>=7,
<a name="l00385"></a>00385 
<a name="l00396"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daa7fc19d805a7211a5353daef642aabf3">00396</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daa7fc19d805a7211a5353daef642aabf3" title="The constant used to select the units round value for a time scale.">UTSV_UNITS_ROUND_VALUE</a>=8,
<a name="l00397"></a>00397 
<a name="l00408"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da9269c425e932fe30f58df113475e31c8">00408</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da9269c425e932fe30f58df113475e31c8" title="The constant used to select the minimum safe rounding value for a time scale.">UTSV_MIN_ROUND_VALUE</a>=9,
<a name="l00409"></a>00409 
<a name="l00420"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da6b7b7969e9a01121bc8f28d11970ae3d">00420</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670da6b7b7969e9a01121bc8f28d11970ae3d" title="The constant used to select the maximum safe rounding value for a time scale.">UTSV_MAX_ROUND_VALUE</a>=10,
<a name="l00421"></a>00421 
<a name="l00422"></a>00422 <span class="preprocessor">#endif </span><span class="comment">/* U_HIDE_INTERNAL_API */</span>
<a name="l00423"></a>00423 
<a name="l00429"></a><a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daf78f4f53a9381e98d2f69d916e37e70e">00429</a>     <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670daf78f4f53a9381e98d2f69d916e37e70e" title="The number of time scale values, in other words limit of this enum.">UTSV_MAX_SCALE_VALUE</a>=11
<a name="l00430"></a>00430 
<a name="l00431"></a>00431 } <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670d" title="UTimeScaleValue values are used to specify the time scale values to utmscale_getTimeScaleValue...">UTimeScaleValue</a>;
<a name="l00432"></a>00432 
<a name="l00443"></a>00443 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int64_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a>
<a name="l00444"></a>00444     <a class="code" href="utmscale_8h.html#aa62c156e7cf791ffa35a1d410a4c5243" title="Get a value associated with a particular time scale.">utmscale_getTimeScaleValue</a>(<a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2" title="UDateTimeScale values are used to specify the time scale used for conversion into...">UDateTimeScale</a> timeScale, <a class="code" href="utmscale_8h.html#adba2667f8086afb0a237ed9b3144670d" title="UTimeScaleValue values are used to specify the time scale values to utmscale_getTimeScaleValue...">UTimeScaleValue</a> value, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status);
<a name="l00445"></a>00445 
<a name="l00446"></a>00446 <span class="comment">/* Conversion to &apos;universal time scale&apos; */</span>
<a name="l00447"></a>00447 
<a name="l00459"></a>00459 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int64_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a>
<a name="l00460"></a>00460     <a class="code" href="utmscale_8h.html#a479aacbfc7ae1e39b92cbc25d5686c6b" title="Convert a int64_t datetime from the given time scale to the universal time scale...">utmscale_fromInt64</a>(int64_t otherTime, <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2" title="UDateTimeScale values are used to specify the time scale used for conversion into...">UDateTimeScale</a> timeScale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status);
<a name="l00461"></a>00461 
<a name="l00462"></a>00462 <span class="comment">/* Conversion from &apos;universal time scale&apos; */</span>
<a name="l00463"></a>00463 
<a name="l00475"></a>00475 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int64_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a>
<a name="l00476"></a>00476     <a class="code" href="utmscale_8h.html#a06557c4eaba6d31e03fb7c0ef934630f" title="Convert a datetime from the universal time scale to a int64_t in the given time scale...">utmscale_toInt64</a>(int64_t universalTime, <a class="code" href="utmscale_8h.html#af2137d4a7bdee4c9d7ef1aa7ac79baf2" title="UDateTimeScale values are used to specify the time scale used for conversion into...">UDateTimeScale</a> timeScale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status);
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span>
<a name="l00479"></a>00479 
<a name="l00480"></a>00480 <span class="preprocessor">#endif</span>
<a name="l00481"></a>00481 <span class="preprocessor"></span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>