mirror of
https://github.com/TangentFoxy/lua-date.git
synced 2025-07-28 02:52:18 +00:00
@@ -1101,14 +1101,14 @@ time as 37815000000 ticks and 4 days. 4 days becuase:
|
|||||||
<dt><span class="term">The <code class="varname">a < b</code>
|
<dt><span class="term">The <code class="varname">a < b</code>
|
||||||
operation.</span></dt>
|
operation.</span></dt>
|
||||||
|
|
||||||
<dd>Returns <code class="constant">true</code> if date value of a is later
|
<dd>Returns <code class="constant">true</code> if date value of a is smaller/older
|
||||||
than date value of b. <code class="varname">a > b</code> is equivalent to
|
than date value of b. <code class="varname">a > b</code> is equivalent to
|
||||||
<code class="varname">b < a</code>.</dd>
|
<code class="varname">b < a</code>.</dd>
|
||||||
|
|
||||||
<dt><span class="term">The <code class="varname">a <= b</code>
|
<dt><span class="term">The <code class="varname">a <= b</code>
|
||||||
operation.</span></dt>
|
operation.</span></dt>
|
||||||
|
|
||||||
<dd>Returns <code class="constant">true</code> if date value of a is later
|
<dd>Returns <code class="constant">true</code> if date value of a is smaller/older
|
||||||
than or equal to the date value of b. <code class="varname">a >= b</code>
|
than or equal to the date value of b. <code class="varname">a >= b</code>
|
||||||
is equivalent to <code class="varname">b <= a</code>.</dd>
|
is equivalent to <code class="varname">b <= a</code>.</dd>
|
||||||
|
|
||||||
@@ -1128,14 +1128,14 @@ time as 37815000000 ticks and 4 days. 4 days becuase:
|
|||||||
<dt><span class="term">The <code class="varname">a - b</code>
|
<dt><span class="term">The <code class="varname">a - b</code>
|
||||||
operation.</span></dt>
|
operation.</span></dt>
|
||||||
|
|
||||||
<dd>Subtract the date and time value of <code class="varname">a</code> to
|
<dd>Subtract the date and time value of <code class="varname">b</code> from
|
||||||
date and time value of <code class="varname">b</code>.</dd>
|
date and time value of <code class="varname">a</code>.</dd>
|
||||||
|
|
||||||
<dt><span class="term">The <code class="varname">a + b</code>
|
<dt><span class="term">The <code class="varname">a + b</code>
|
||||||
operation.</span></dt>
|
operation.</span></dt>
|
||||||
|
|
||||||
<dd>Add the date and time value of <code class="varname">a</code> to date and
|
<dd>Add the date and time value of <code class="varname">b</code> to date and
|
||||||
time value of <code class="varname">b</code>.</dd>
|
time value of <code class="varname">a</code>.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div><code class="varname">a</code> and <code class="varname">b</code> must be a
|
</div><code class="varname">a</code> and <code class="varname">b</code> must be a
|
||||||
parsable date value or an error rises
|
parsable date value or an error rises
|
||||||
@@ -1162,7 +1162,7 @@ assert(a == b and (not(a ~= b)))
|
|||||||
|
|
||||||
assert((a .. 565369) == (b .. 565369))
|
assert((a .. 565369) == (b .. 565369))
|
||||||
assert((a .. "????") == (b .. "????"))
|
assert((a .. "????") == (b .. "????"))
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user