HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - TimeZone=LOCALTIME+6 ?
 
Operating System - HP-UX
        1840126
        Members
    
    
        5166
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-19-2003 11:08 PM
05-19-2003 11:08 PM
			
				
					
					
						Hi All,
Our local time is GMT+6, what should be the system time( of HP9000, 11i) or timezone,
1)localtime -6 ?
[as localtime=GMT+6
=> GMT=localtime -6 ]
When installing 11i, it asks for the timezone.
2)What does below mean,
$ps -ef |grep exp
root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi
On this system, we have put timezone=LOCALTIME -6, as we assumed timezone=GMT or UTC. But why the above grep message shows,TZ=LOCALTIME+6.
Can somebody explain this? It would be a great help.
Thanks in advance.
Richard
					
				
			
			
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
Our local time is GMT+6, what should be the system time( of HP9000, 11i) or timezone,
1)localtime -6 ?
[as localtime=GMT+6
=> GMT=localtime -6 ]
When installing 11i, it asks for the timezone.
2)What does below mean,
$ps -ef |grep exp
root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi
On this system, we have put timezone=LOCALTIME -6, as we assumed timezone=GMT or UTC. But why the above grep message shows,TZ=LOCALTIME+6.
Can somebody explain this? It would be a great help.
Thanks in advance.
Richard
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-20-2003 01:24 AM
05-20-2003 01:24 AM
Solution
			
				
					
					
						You can read the following paragraph in manual pages of environ(5):
TZ sets time zone information. TZ can be set using the format:
[:]STDoffset[DST[offset][,rule]]
where:
STD and DST Three or more bytes that designate the standard time zone (STD) and summer (or daylight-savings) time zone (DST) STD is required. If DST is not specified, summer d time does not apply in this locale. Any characters other than digits, comma (,), minus (-), plus (+), or ASCII NUL are allowed.
offset offset is the value that must be added to
local time to arrive at Coordinated Universal Time (UTC). Offset is of the form:
hh[:mm[:ss]]
Hour (hh) is any value from 0 through 23. The optional minutes (mm) and seconds (ss) fields are a value from 0 through 59. The hour field is required. If offset is preceded by a -, the time zone is east of the Prime Meridian. A + preceding offset indicates that the time zone is west of the Prime Meridian. The default case is west of the Prime Meridian.
When you say 'Our local time is GMT+6' I understand that if in GMT zone time is 00:00, in your zone it is 06:00. Then I think you should set the value of TZ variable
TZ=UTC-6
		
		
	
	
	
TZ sets time zone information. TZ can be set using the format:
[:]STDoffset[DST[offset][,rule]]
where:
STD and DST Three or more bytes that designate the standard time zone (STD) and summer (or daylight-savings) time zone (DST) STD is required. If DST is not specified, summer d time does not apply in this locale. Any characters other than digits, comma (,), minus (-), plus (+), or ASCII NUL are allowed.
offset offset is the value that must be added to
local time to arrive at Coordinated Universal Time (UTC). Offset is of the form:
hh[:mm[:ss]]
Hour (hh) is any value from 0 through 23. The optional minutes (mm) and seconds (ss) fields are a value from 0 through 59. The hour field is required. If offset is preceded by a -, the time zone is east of the Prime Meridian. A + preceding offset indicates that the time zone is west of the Prime Meridian. The default case is west of the Prime Meridian.
When you say 'Our local time is GMT+6' I understand that if in GMT zone time is 00:00, in your zone it is 06:00. Then I think you should set the value of TZ variable
TZ=UTC-6
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-20-2003 01:53 AM
05-20-2003 01:53 AM
			
				
					
						
							Re: TimeZone=LOCALTIME+6 ?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Damian,
My /etc/TIMEZONE contains these 2 lines:
TZ=BDT-6
export TZ
So, I should change it to:
TZ=UTC-6
This server is mission criticle, some billing application is running on it.
Thanks,
Richard
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
My /etc/TIMEZONE contains these 2 lines:
TZ=BDT-6
export TZ
So, I should change it to:
TZ=UTC-6
This server is mission criticle, some billing application is running on it.
Thanks,
Richard
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-20-2003 06:14 AM
05-20-2003 06:14 AM
			
				
					
						
							Re: TimeZone=LOCALTIME+6 ?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I think this issue is not enough to reboot a critical mission system.
if you run "ps -ef |grep exp" and appears
root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi
is because this command has been launched explicitly using 'LOCALTIME+6'. I cannot find out the reasons for this. Who launched that ?
P.D: I cannot find 'BDT' timezone in my system (/usr7lib/tztab).
		
		
	
	
	
if you run "ps -ef |grep exp" and appears
root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi
is because this command has been launched explicitly using 'LOCALTIME+6'. I cannot find out the reasons for this. Who launched that ?
P.D: I cannot find 'BDT' timezone in my system (/usr7lib/tztab).
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP