Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Logic to handle the Timestamp properly for all the Possible

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sreekusr
Warnings : 1

New User


Joined: 28 Aug 2006
Posts: 45
Location: Mumbai

PostPosted: Tue Apr 21, 2009 2:42 pm    Post subject: Logic to handle the Timestamp properly for all the Possible
Reply with quote

Hi,

Following is the requirement.

I got one time stamp information '2009-04-20T12:33:33'

YYYY-MM-DDTHH:MM:SS

My requirement is to increment seconds (SS) by 1 Sec and
correspondingly all the other should be handled.

For Eg: if the timestamp is '2009-04-20T23:59:59'
And after incrementing the sec
the date should be displayed as '2009-04-21T00:00:00'

Please suggest me a logic to handle the Timestamp properly for all the Possible scenarios.

Thanks,
Sree
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Apr 21, 2009 3:23 pm    Post subject: Reply to: TimeStamp
Reply with quote

search the docs for the language environment conversion functions
CEEISEC and CEESECI
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts Converting EBCDIC to Unicode (TimeStamp) muralikrishnan_new COBOL Programming 2 Mon Jul 25, 2016 10:42 pm
No new posts Convert Timestamp Value mrdinesh DFSORT/ICETOOL 7 Thu May 05, 2016 6:01 pm
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us