RPGNext
Take Your RPG Development to theNextLevel
Site Links
Home
RPG Programming
xRPG Downloads
xRPG Docs
About This Site
About Me

RPG Gurus
Bob Cozzi
Brad Stone
Scott Klement
Jon Paris

iSeries Links
Alpha Works
Midrange.com
FAQ@Midrange.com
MidrangeServer.com
IBM Docs
iSeries Infocenter
MCPress
Easy400
API Finder

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} );

Name Type Options Opt/Req Description
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.

This site conforms with the following W3C specifications:

Web Essentials

Contact