Page 1 of 1

Getting the function code for date and time

PostPosted: Mon Mar 23, 2015 6:34 pm
by gvenkateshmca
Hi All,

I have the below requirement for the date and time calculation.

I will be getting the time from the table with minutes and need to subtract from the current time and need to convert this into the date and time.

suppose current date is 23rd march 2015 , current time 5.00 pm if input from table is 1440(60*24) minutes i have to get the previous date 22 march 2015 .
Please let me know if we have any function to handle this case.


Thanks in Advances.
Venkat

Re: Getting the function code for date and time

PostPosted: Mon Mar 23, 2015 7:21 pm
by BillyBoyo
All the intrinsic functions (part of the language) are documented, and there are no user-written functions in Enterprise COBOL. Someone at your site will have done date/time calculations previously, so there will be working code that you can use, possible already in a sub-program, possibly you can consider making one if it is likely to be used more in the future.