×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

COBOL Local time converter

COBOL Local time converter

COBOL Local time converter

(OP)
I have a central data center with stores all over the country.  Does anyone know how I can get the system time from the central machine and convert it to the time of the different stores across the country?

RE: COBOL Local time converter

We face the same issue. HQ/data center on the East coast w/ locations  across the country. Application programs adjust time based on location of user running the program.  So user's in Central time zone are -1 off of EST/EDT, Mountain time zone -2 and Pacific time zone -3. Fortunately, we don't have users in AZ or IL/IN (I can never remember which one) which have local variations of the standard time zones.

If your apps run in different locations or your users connect to multiple locations you will have a bigger issue trying to determine the time offset.

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas

RE: COBOL Local time converter

Hi Jeff,
Cobol LE has some useful date/time handling subroutines built in. Have a look at the Language Environment manual here

The one that might be of interest is CEEGMTO which will tell you the difference between GMT and local time.

I have a feeling that this is not going to be of use to you as I think that you have a central machine used by various users located all over the country. The usual way to do this is to have a subroutine that is passed a location and gives back the time or offset. The values of each offset for each location can be held in a data file or a database.

To be honest, this sort of thing is quite common and it may well be that a subroutine has already been written at your installation. Ask around, you may get lucky!

Regards,
Marc

  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close