- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX and Time settings
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
11-01-2004 11:51 AM
11-01-2004 11:51 AM
HP-UX and Time settings
I heard that UNIX systems are set to UTC by default but I just want to confirm that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 12:01 PM
11-01-2004 12:01 PM
Re: HP-UX and Time settings
It is not the HP-UX that keeps the time for you. It is the clock in the motherboard of your system that stores the time.
This topic has been discussed number of times.
All your system hardware clock does is to keep counting from Jan'1 1970. When you issue commands like date, for example, refers to the TZ environment variable and convert UTC to the corresponding local time using the /usr/lib/tztab table.
- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:45 PM
11-01-2004 02:45 PM
Re: HP-UX and Time settings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:55 PM
11-01-2004 02:55 PM
Re: HP-UX and Time settings
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:13 PM
11-01-2004 03:13 PM
Re: HP-UX and Time settings
Because I heard that ALL UNIXs operates the "default" time format in UTC. But, my question is, if an HP-UX administrator DOES NOT select the Local Timezone (TZ) does that mean that it will automatically set the time in UTC by default?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:19 PM
11-01-2004 03:19 PM
Re: HP-UX and Time settings
The timezone variable "TZ" has nothing to do with how HP-UX keeps it's time. "TZ" variable is only for the interpretation of time. The default "TZ" is listed in /etc/TIMEZONE file. By default everyuser's TZ variable gets it. Generally to make more sense, SAs configure the TIMEZONE to where the systems are located. Some SAs tend to configure GMT if their systems in different locations to get a relative picture.
Default TZ can be overwritten by specifying the user's own Timezone in his/her .profile. For ex., as a user I can do
$export TZ=GMT
$date
$export TZ=CST6CDT
$date
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:20 PM
11-01-2004 03:20 PM
Re: HP-UX and Time settings
Yes. It does keep time in UTC format. Its Unix.
SEP
;-)
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 01:52 AM
11-03-2004 01:52 AM
Re: HP-UX and Time settings
/sbin/set_parms timezone
That will set /etc/TIMEZONE and now each user that logs in will have the TZ value set for this location. As mentioned, TZ controls how time is displayed or provided to user programs. So someone from a different country can login to your system, export TZ in their current session and see their local time including timestamps on files (ls -l) as well as applicatins that are run from that session.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 01:54 AM
11-03-2004 01:54 AM