2 lines
5.0 KiB
HTML
2 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Date (ocaml-google-apps.GoogleApps.Date)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><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">ocaml-google-apps</a> » <a href="../index.html">GoogleApps</a> » Date</nav><h1>Module <code>GoogleApps.Date</code></h1><p>Standard JavaScript Date</p></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code></dt></dl><dl><dt class="spec value" id="val-t_of_js"><a href="#val-t_of_js" class="anchor"></a><code><span class="keyword">val</span> t_of_js : Ojs.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-t_to_js"><a href="#val-t_to_js" class="anchor"></a><code><span class="keyword">val</span> t_to_js : <a href="index.html#type-t">t</a> <span>-></span> Ojs.t</code></dt><dt class="spec value" id="val-now"><a href="#val-now" class="anchor"></a><code><span class="keyword">val</span> now : unit <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_day"><a href="#val-get_day" class="anchor"></a><code><span class="keyword">val</span> get_day : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>day of the week (0-6)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_full_year"><a href="#val-get_full_year" class="anchor"></a><code><span class="keyword">val</span> get_full_year : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>year (4 digits)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_month"><a href="#val-get_month" class="anchor"></a><code><span class="keyword">val</span> get_month : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>month (0-11)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_date"><a href="#val-get_date" class="anchor"></a><code><span class="keyword">val</span> get_date : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>day of the month (1-31)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_hours"><a href="#val-get_hours" class="anchor"></a><code><span class="keyword">val</span> get_hours : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>hour (0-23)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_minutes"><a href="#val-get_minutes" class="anchor"></a><code><span class="keyword">val</span> get_minutes : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>minutes (0-59)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-get_seconds"><a href="#val-get_seconds" class="anchor"></a><code><span class="keyword">val</span> get_seconds : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><dl><dt>returns</dt><dd><p>seconds (0-59)</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-to_date_string"><a href="#val-to_date_string" class="anchor"></a><code><span class="keyword">val</span> to_date_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-to_ISO_string"><a href="#val-to_ISO_string" class="anchor"></a><code><span class="keyword">val</span> to_ISO_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-to_locale_date_string"><a href="#val-to_locale_date_string" class="anchor"></a><code><span class="keyword">val</span> to_locale_date_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span class="keyword">val</span> to_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-set_date"><a href="#val-set_date" class="anchor"></a><code><span class="keyword">val</span> set_date : <a href="index.html#type-t">t</a> <span>-></span> <span>date:int</span> <span>-></span> unit</code></dt><dt class="spec value" id="val-set_month"><a href="#val-set_month" class="anchor"></a><code><span class="keyword">val</span> set_month : <a href="index.html#type-t">t</a> <span>-></span> <span>month:int</span> <span>-></span> unit</code></dt><dt class="spec value" id="val-set_full_year"><a href="#val-set_full_year" class="anchor"></a><code><span class="keyword">val</span> set_full_year : <a href="index.html#type-t">t</a> <span>-></span> <span>year:int</span> <span>-></span> unit</code></dt></dl></div></body></html> |