Sponsored Content
The Lounge What is on Your Mind? Chat with iBot - Our RSS Robot Girl Time issue with two different zones Post 302134622 by kirfan on Saturday 1st of September 2007 11:54:43 AM
Old 09-01-2007
Time issue with two different zones

Our city zone is Pacific standard time(PST). and our unix server time zone is GMT.
I am calling informatica job in unix script. Below is the steps in script.
1. Before starting the informatica job i get the datetime in startdate variable.
2. Calling the informatica configuration file which has the timezone as GMT.
3. Now the informatica job is called and upon the completion of Informatica job, I get the datetime in enddate variable.

This works fine in development environment. ie startdate and enddate variable values are in GMT timezone.
In Production the above unix script is called in Control M scheduler application which has the PST. The starttime variable is set to PST and enddate variable is set to GMT. so we were not able to get exact time difference. Is this due to the Control M scheduler timezone.
Control M and our login account are same. I checked in the production unix box time zone using TZ variable shows GMT timezone.
Pl help me to solve this issue.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

time zones

Hi all, this is my first post so I hope someone can help me. I am currently putting code into a script that is run through the cron on a unix box where the date/time is set to EDT or Eastern Daylight Time but I am in Central Standard time. The program I am adding code to runs every hour and I put... (1 Reply)
Discussion started by: ldgriess
1 Replies

2. UNIX for Advanced & Expert Users

ntp across time zones

I've been tasked to implement ntp on my SCO Unix servers. I have over 600 servers spread across the US in different time zones. Each remote server has network connectivity to a main server here, through their local ISP. (That's how we currently deliver mail to them). My question is, how can... (5 Replies)
Discussion started by: Howeird
5 Replies

3. Solaris

Solaris Live Upgrade issue with Zones

I 'm running solaris10 u6 with 141414-02. My system is T5220 running 2 Ldoms and 7 zones on primary domain. I 'm tryin to create booth environment on my alternate root disk after breaking the SVM mirroring but it does not go well and stuck at some point , and i have to reboot the system to get rid... (1 Reply)
Discussion started by: fugitive
1 Replies

4. Solaris

Enabling time service in local zones

Hi, Is it possible to enable the time service in local zones? E.g. erahmanz1% svcs -a | grep -i time STATE STIME FMRI disabled Sep_10 svc:/network/daytime:dgram disabled Sep_10 svc:/network/daytime:stream disabled Sep_10 svc:/network/time:dgram... (2 Replies)
Discussion started by: ERahman
2 Replies

5. Solaris

need help::solaris zones in real time..

Hi frnds... I just had interview with a client , question :: how do you implement solaris zones in real time. please can anyone give me stepbystep process of zones.... i know its there in sol10 pdf but i want short explantion which i can use to answer an interviewer... THANKS IN... (0 Replies)
Discussion started by: yrajendergoud
0 Replies

6. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies
rtc(1M) 						  System Administration Commands						   rtc(1M)

NAME
rtc - provide all real-time clock and GMT-lag management SYNOPSIS
/usr/sbin/rtc [-c] [-z zone-name] DESCRIPTION
On x86 systems, the rtc command reconciles the difference in the way that time is established between UNIX and MS-DOS systems. UNIX systems utilize Greenwich Mean Time (GMT), while MS-DOS systems utilize local time. Without arguments, rtc displays the currently configured time zone string. The currently configured time zone string is based on what was last recorded by rtc-z zone-name. The rtc command is not normally run from a shell prompt; it is generally invoked by the system. Commands such as date(1) and rdate(1M), which are used to set the time on a system, invoke /usr/sbin/rtc -c to ensure that daylight savings time (DST) is corrected for properly. OPTIONS
-c This option checks for DST and makes corrections if necessary. It is normally run once a day by a cron job. If there is no RTC time zone or /etc/rtc_config file, this option will do nothing. -z zone-name This option, which is normally run by the system at software installation time, is used to specify the time zone in which the RTC is to be maintained. It updates the configuration file /etc/rtc_config with the name of the specified zone and the current GMT lag for that zone. If there is an existing rtc_config file, this command will update it. If not, this command will create it. FILES
/etc/rtc_config The data file used to record the time zone and GMT lag. This file is completely managed by /usr/sbin/rtc, and it is read by the kernel. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
date(1), rdate(1M), attributes(5) SunOS 5.11 3 Oct 2003 rtc(1M)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy