Show pageDiscussionOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== DDAYS ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Return number of days between dates </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^^ ^ __Output Stack__ ^ | **R<sub>date1</sub>** | **R<sub>date2</sub>** | **→** | **I<sub>days</sub>** | | //Level 2// | //Level 1// | //→// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | **Keyword type** | [[manual:chapter5:basics#commands|Command]] || | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-6two-arguments-one-result-commands|Group 6]] | //Two arguments, one result commands// | | **Affected by flags** | [[manual:appendix:flags#flag-42|-42]] | //Date format// | </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''DDAYS'' command returns the number of days between two dates; if **R<sub>date1</sub>** is chronologically later than **R<sub>date2</sub>** the result is negative. The dates are expressed by a real number and its format depends on the state of flag [[manual:appendix:flags#flag-42|-42]]: * if the flag [[manual:appendix:flags#flag-42|-42]] is set the date is expressed as **DD.MMYYYY**; * if the flag [[manual:appendix:flags#flag-42|-42]] is cleared the date is expressed as **MM.DDYYYY**. where: * **DD** is the day; * **MM** is the month; * **YYYY** is the year. The range of allowable dates is **October 15, 1582** to **December 31, 9999**. </callout> <callout type="success" icon="true" title="Compatibility"> ---- ''DDAYS'' is fully equivalent to its **userRPL** counterpart. </callout> <callout type="info" icon="true" title="Usage"> ---- **__Input__** <code> 4: 3: 2: 10.081984 1: 28.111983 ………………………………………………………………………………………………………… -42 SF DDAYS </code> \\ **__Output__** <code> 4: 3: 2: 1: -256 ………………………………………………………………………………………………………… </code> </callout> <callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> ---- {{page>manual:chapter6:system&nofooter&noeditbtn&inline}} </callout> manual/chapter6/system/cmd_ddays.txt Last modified: 2021/09/22 12:45by jojo1973