$Sir DateND: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Current date as number of days<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Current date as number of days<section end="desc" /></span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Sir_DateND function is [[to be entered]].</p>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $Sir_DateND function.</p>


The $Sir_DateND function has no arguments and returns the number of days since 1 January, 1900.


The $Sir_DateND function has no arguments and returns the number of days since 1 January, 1900.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %num = $Sir_DateND
<p class="syntax"><section begin="syntax" /> %num = $Sir_DateND
Line 12: Line 11:
<p class="caption">$Sir_DateND Function
<p class="caption">$Sir_DateND Function
</p>
</p>
where
where
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%num</th>
<tr><th>%num</th>
Line 18: Line 19:
</td></tr></table>
</td></tr></table>


For example, the following fragment will print the date one week from the current date:


For example, the following fragment will print the date one week from the current date:
<p class="code"> PRINT $Sir_ND2Date($Sir_DateND + 7, 'Wkday DAY Month YYYY')
<p class="code"> PRINT $Sir_ND2Date($Sir_DateND + 7, 'Wkday DAY Month YYYY')
</p>
</p>


$Sir_DateND has no error conditions.  
$Sir_DateND has no error conditions.  
Line 28: Line 28:
Notes:
Notes:
<ul>
<ul>
<li>Values returned by $Sir_DateND can be represented in a 4-byte BINARY field, if you choose to do so.  
<li>Values returned by $Sir_DateND can be represented in a 4-byte BINARY field, if you choose to do so.  
<li>To obtain the current date and time in a readable form, use $Sir_Date.  
<li>To obtain the current date and time in a readable form, use $Sir_Date.  
Line 43: Line 42:
<li>[[Japanese functions]]</li>
<li>[[Japanese functions]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
 
<li>[[Sir2000 User Language Tools]]</li>
<li>''[[Sir2000 User Language Tools]]''
</ul>
</ul>
<p class="caption">Products authorizing $Sir_DateND
<p class="caption">Products authorizing $Sir_DateND
</p>
</p>


[[Category:$Functions|$Sir_DateND]]
[[Category:$Functions|$Sir_DateND]]

Revision as of 19:21, 8 February 2011

<section begin="desc" />Current date as number of days<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $Sir_DateND function.

The $Sir_DateND function has no arguments and returns the number of days since 1 January, 1900.

Syntax

<section begin="syntax" /> %num = $Sir_DateND <section end="syntax" />

$Sir_DateND Function

where

%num set to the number of days from 1 Jan 1900 to the current date.

For example, the following fragment will print the date one week from the current date:

PRINT $Sir_ND2Date($Sir_DateND + 7, 'Wkday DAY Month YYYY')

$Sir_DateND has no error conditions.

Notes:

  • Values returned by $Sir_DateND can be represented in a 4-byte BINARY field, if you choose to do so.
  • To obtain the current date and time in a readable form, use $Sir_Date.
  • To convert the number of days to a readable form, use $Sir_ND2Date.

Products authorizing $Sir_DateND