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: getTSDayNum()


Get the numeric day of the week from a timestamp.

Returns the number based on a mathematical algorithm and should work for any date.

1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thuday
6 = Friday
7 = Saturday

To get the name instead of the number, call the getTSDayName procedure instead.

Usage:

getTSDayNum( {TSin} );

Name Type Options Opt/Req Description
TSIn Z Const Opt The timestamp. If not sent then %timestamp() is used.
Returns: 1,0 n/a n/a The number of the week of the day for this timestamp.

This site conforms with the following W3C specifications:

Web Essentials

Contact