xRPG Core Library Procedures - RNBDATES: getTSString()
Return the String of a timestamp variable
Timestamps strings return like so:
Normal: 2001-07-06-08.00.00.337000
If reverseOrder is selected, the string will return like so:
Normal: 08:00:00, 07/06/2001
Zero Suppress: 8:00:00, 7/6/2001
Usage:
getTSString( {TSin} : {reverseOrder} : {ZeroSuppress} : {timeSep} : {dateSep} );
| TSin |
Z |
Const |
Opt |
The timestamp. If not sent then %timesamp() is used. |
| reverseOrder |
N |
Const |
Opt |
Reverse the return order. If not sent then reverse order is *OFF. |
| zeroSuppress |
N |
Const |
Opt |
Zero suppress individual sub-fields. If not sent then zero suppress is *OFF.
Zero suppress only functions when reverse order is *ON. |
| timeSep |
1A |
Const |
Opt |
Allows the user to specify a separator for the time portion of the string.
If not sent then ':' is used for reverseOrder and '.' is used for not reverseOrder. |
| dateSep |
1A |
Const |
Opt |
Allows the user to specify a separator for the date portion of the string.
If not sent then '/' is used for reverseOrder and '-' is used for not reverseOrder. |
| Returns: |
26A |
Varying |
n/a |
The timestamp string. |