IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Logic to handle the Timestamp properly for all the Possible


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreekusr
Warnings : 1

New User


Joined: 28 Aug 2006
Posts: 54
Location: Madrid

PostPosted: Tue Apr 21, 2009 2:42 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 21, 2009 3:23 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Timestamp difference and its average ... DB2 11
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
Search our Forums:

Back to Top