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. ==== →HMS ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Convert decimal time to hours / minutes / seconds </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **R<sub>time-dec</sub>** | **→** | **R<sub>time-hms</sub>** | | //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-5one-argument-one-result-commands|Group 5]] | //One argument, one result commands// | | **Affected by flags** | //None// || </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''→HMS'' command converts a value representing hours with a decimal fraction to hours / minutes / seconds format. The result is expressed by a real number in the format **HH.MMSS**, where: * **HH** are the hours; * **MM** are the minutes; * **SS** are the seconds. </callout> <callout type="warning" icon="true" title="Compatibility"> ---- ''→HMS'' is not fully equivalent to its **userRPL** counterpart. In particular: * in **userRPL** the time value can express fractions of seconds too; in **newRPL** it is not allowed. </callout> <callout type="info" icon="true" title="Usage"> ---- **__Input__** <code> 4: 3: 2: 1: 10.84 ………………………………………………………………………………………………………… →HMS </code> \\ **__Output__** <code> 4: 3: 2: 1: 10.5024 ………………………………………………………………………………………………………… </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_tohms.txt Last modified: 2021/09/22 15:15by jojo1973