<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Period.html"> <link rel="next" href="Time.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Utils" rel="Chapter" href="Utils.html"> <link title="Time_Zone" rel="Chapter" href="Time_Zone.html"> <link title="Period" rel="Chapter" href="Period.html"> <link title="Time_sig" rel="Chapter" href="Time_sig.html"> <link title="Time" rel="Chapter" href="Time.html"> <link title="Ftime" rel="Chapter" href="Ftime.html"> <link title="Date_sig" rel="Chapter" href="Date_sig.html"> <link title="Date" rel="Chapter" href="Date.html"> <link title="Calendar_sig" rel="Chapter" href="Calendar_sig.html"> <link title="Calendar_builder" rel="Chapter" href="Calendar_builder.html"> <link title="Calendar" rel="Chapter" href="Calendar.html"> <link title="Fcalendar" rel="Chapter" href="Fcalendar.html"> <link title="Printer" rel="Chapter" href="Printer.html"> <link title="Version" rel="Chapter" href="Version.html"><title>Time_sig</title> </head> <body> <div class="navbar"><a href="Period.html">Previous</a> <a href="index.html">Up</a> <a href="Time.html">Next</a> </div> <center><h1>Module <a href="type_Time_sig.html">Time_sig</a></h1></center> <br> <pre><span class="keyword">module</span> Time_sig: <code class="code"><span class="keyword">sig</span></code> <a href="Time_sig.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>Time interface. A time may be seen as a triple (hour, minute, second). <p> If minutes and seconds do not belong to <code class="code">[0; 60[</code>, they are coerced into this interval.<br> <b>Example:</b> "30 hours, 60 minutes, 80 seconds" is coerced to "31 hours, 1 minute, 20 seconds". <p> Each time is interpreted in the current time zone (given by <code class="code"><span class="constructor">Time_Zone</span>.current ()</code>). So, if you change the time zone (by <a href="Time_Zone.html#VALchange"><code class="code"><span class="constructor">Time_Zone</span>.change</code></a>), each time consequently changes. If you want to express a time in another time zone (and do not affect others times), use the <code class="code">convert</code> function.<br> <hr width="100%"> <pre><span class="keyword">module type</span> <a href="Time_sig.Second.html">Second</a> = <code class="code"><span class="keyword">sig</span></code> <a href="Time_sig.Second.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info"> Interface for seconds. </div> <pre><span class="keyword">module type</span> <a href="Time_sig.S.html">S</a> = <code class="code"><span class="keyword">sig</span></code> <a href="Time_sig.S.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info"> Common operations for all time representations. </div> </body></html>