Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

CICS :: RE: To get ABSTIME using Date(MMDDYY) and Time (HHMMSS)

$
0
0
Author: Robert Sample
Posted: Thu Jun 30, 2016 11:56 pm (GMT 5.5)

Quote:
I only have date and time which receive from another CICS region which MMDDYY and HH:MM:SS.
This may get complicated. Are the other CICS region or regions in the same time zone as your site? If so, use the method I provided earlier to get local and GMT time for your site and subtract the GMT time from the local time to get the GMT offset; you can then adjust the received date / time values appropriately. If the other CICS region(s) can be in a different time zone (or zones), then you have the additional issue that a GMT offset calculation for your time zone does you absolutely no good unless you know the relative difference in time zones from the source of the date / time. If you're dealing with a single source and time zone, you can use a fixed difference; if you're dealing with multiple source time zones, your best bet would be to get the date / time values sent to you with GMT offset included such as ISO 8601 format.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 9405

Trending Articles