File: index.html

package info (click to toggle)
ocaml-posix 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,732 kB
  • sloc: ml: 3,472; sh: 14; makefile: 3; javascript: 1
file content (2 lines) | stat: -rw-r--r-- 4,039 bytes parent folder | download | duplicates (2)
1
2
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Tm (posix-time2.Posix_time2.Tm)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">posix-time2</a> &#x00BB; <a href="../index.html">Posix_time2</a> &#x00BB; Tm</nav><h1>Module <code>Posix_time2.Tm</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <span class="keyword">private</span> </code><code>{</code><table class="record"><tr id="type-t.tm_sec" class="anchored"><td class="def field"><a href="#type-t.tm_sec" class="anchor"></a><code>tm_sec : int;</code></td></tr><tr id="type-t.tm_min" class="anchored"><td class="def field"><a href="#type-t.tm_min" class="anchor"></a><code>tm_min : int;</code></td></tr><tr id="type-t.tm_hour" class="anchored"><td class="def field"><a href="#type-t.tm_hour" class="anchor"></a><code>tm_hour : int;</code></td></tr><tr id="type-t.tm_mday" class="anchored"><td class="def field"><a href="#type-t.tm_mday" class="anchor"></a><code>tm_mday : int;</code></td></tr><tr id="type-t.tm_mon" class="anchored"><td class="def field"><a href="#type-t.tm_mon" class="anchor"></a><code>tm_mon : int;</code></td></tr><tr id="type-t.tm_year" class="anchored"><td class="def field"><a href="#type-t.tm_year" class="anchor"></a><code>tm_year : int;</code></td></tr><tr id="type-t.tm_wday" class="anchored"><td class="def field"><a href="#type-t.tm_wday" class="anchor"></a><code>tm_wday : int;</code></td></tr><tr id="type-t.tm_yday" class="anchored"><td class="def field"><a href="#type-t.tm_yday" class="anchor"></a><code>tm_yday : int;</code></td></tr><tr id="type-t.tm_isdst" class="anchored"><td class="def field"><a href="#type-t.tm_isdst" class="anchor"></a><code>tm_isdst : int;</code></td></tr></table><code>}</code></dt><dd><p>POSIX tm value with seconds <code>0,61</code>, minutes <code>0,59</code>, hours <code>0,23</code>, day of month <code>0,31</code>, month of year <code>0,11</code>, years since 1900, day of week <code>0,6</code> (Sunday = 0), day of year <code>0,365</code> and daylight saving flag. The daylight saving flag is positive if daylight saving is in effect and 0 if not. In case this information is not available, it has a negative value.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val</span> create : int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <span><a href="index.html#type-t">t</a> option</span></code></dt><dd><p><code>create tm_sec tm_min tm_hour tm_mday rm_mon tm_year tm_wday tm_yday tm_isdst</code> creates a new time value if the all arguments suffice the aforementioned predicates. Otherwise <code>create</code> will return <code>None</code>.</p></dd></dl><dl><dt class="spec value" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span class="keyword">val</span> compare : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int</code></dt><dd><p><code>compare t1 t2</code> compares the two time values <code>t1</code> and <code>t2</code>. It returns <code>0</code> if <code>t1</code> is equal to <code>2</code>, a negative integer if <code>t1</code> is less than <code>t2</code>, and a positive integer if <code>t1</code> is greater than <code>t2</code>. <code>compare</code> considers tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec in the given order.</p></dd></dl></div></body></html>