The internal time of the OS should be exactly on UTC - do you not have ntpd or xntpd running?
If the system clock is off by a few seconds then
You may find that the EDT <-> EST change occurs on the wrong day of the year - it just changed for the US.
For POSIX systems, changing TZ does change how the time is reported in any POSIX compliant command that looks at time values, like date or ls, for example.
Sorry I think someone already pointed out this but I couldn't find it.
Please tell me what is the difference between SunOS Version and Solaris Version.
What is the purpose of maintaining these two things ?
Thanks (2 Replies)
I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Hi,
In solaris how to change the timezone to display to HKT
I tried by putting TZ=Hongkong or TZ=Asia/Hong_kong
but it is taking me to the display of CST.
how to change it to HKT
thanks
Bala (1 Reply)
Does anyone know if there is a patch for SunOS 5.6 timezone update for new daylight savings times. I have looked and have updated my 5.8 machine. Can not find one for 5.6. I still use one box for a certian piece of hardware that can not use the newer versions. (6 Replies)
QUERY SCENARIO
Here is the actual scenario
LOOP
echo "$COLNAME $TYPENAME($LENGTH) $NULLS ">>$DDL_FILE
END-LOOP
COLNAME, TYPENAME, LENGTH, NULLS are the variables and within echo statment the output of which has to go into file specified by DDL_FILE.
... (1 Reply)
Hi
On several AIX 5.3 LPARs the timezone is currrently set to:
TZ=NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00
Daylight savings in NZ starts on Sun 28th Sep 2008, which is the fourth Sunday. Do I need to change my TZ variable to NZST-12NZDT,M9.4.0/02:00,M4.1.0/03:00 or will AIX interpret the fifth... (2 Replies)
A bit of searching on Google did not seem to yield any really helpful results on how to set vim to use k&r indentation style. I know Emacs has such a feature, but does vim? If so, how do I turn it on? I am just starting to learn vi, and when I am coding in C it looks really ugly without some sort... (2 Replies)
Hi All,
I am using a book to learn C++. Unfortunately the book, sometimes, uses the maddening phrase, #include <conio.h>, which is a M$ related file and not a part of STL, in some of its examples.
My question is: How would you modify the following code so it would compile and run on Linux?... (3 Replies)
What is the easiest way to find the date 6 month prior to the current date.
Example:
Today is 2011/01/29
I need to find the 1st day of the month, 6 month ago, which is 2010/08/01. I have to count 1/1/2011 as a previous month, since the current day is past 1/1/2011. Is there any easy... (4 Replies)
Hello All
I’ve made the decision to switch my storage server from FreeNAS to Solaris. I opted to use FreeNAS as it has ZFS and until BTRFS is stable, it’s the best option (IMHO) for backup and network storage.
The switch was facilitated by the USB stick that FreeNAS was on got lost during a... (1 Reply)
Discussion started by: BlueDalek
1 Replies
LEARN ABOUT FREEBSD
tzsetup
TZSETUP(8) BSD System Manager's Manual TZSETUP(8)NAME
tzsetup -- set local timezone
SYNOPSIS
tzsetup [-nrs] [-C chroot_directory] [zoneinfo_file | zoneinfo_name]
DESCRIPTION
The tzsetup utility reads a database of timezone information and presents a menu allowing the user to select a specific zone without knowing
the details of the database layout. The selected zone is installed as the system default zone. The tzsetup utility also determines whether
any adjustment is necessary for systems where the hardware clock does not keep UTC.
The following options are available:
-C chroot_directory
Open all files and directories relative to chroot_directory.
-n Do not create or copy files.
-r Reinstall the zoneinfo file installed last time. The name is obtained from /var/db/zoneinfo.
-s Skip the initial question about adjusting the clock if not set to UTC.
It is possible to short-circuit the menu system by specifying the location of a zoneinfo_file or the name of the zoneinfo_name on the command
line; this is intended mainly for pre-configured installation scripts or people who know which zoneinfo they want to install.
TIMEZONE DATABASE
The contents of the timezone database are indexed by /usr/share/zoneinfo/zone.tab. This file lists, for each timezone data file, the ISO
3166 territory code, approximate geographical coordinates (in ISO 6709 format), and location within the territory.
The maintainers of the database maintain the following policies:
1. At least one zone for every country or inhabited geographical territory.
2. One zone for every distinct, documented timezone history since the beginning of the UNIX epoch (January 1, 1970, GMT).
3. Each zone is named for the most populous city therein. (Where possible, the database includes pre-1970 history for its city.)
The source code to the database (/usr/src/share/zoneinfo/[a-z]*) contains many additional comments and documentation references for the his-
torically minded.
FILES
/etc/localtime current time zone file
/etc/wall_cmos_clock see adjkerntz(8)
/usr/share/misc/iso3166 mapping of ISO 3166 territory codes to names
/usr/share/zoneinfo directory for zoneinfo files
/usr/share/zoneinfo/zone.tab mapping of timezone file to country and location
/var/db/zoneinfo saved name of the timezone file installed last
EXAMPLES
Normal usage, to select the right zoneinfo file via the dialog-based user interface:
tzsetup
Install the file /usr/share/zoneinfo/Australia/Sydney:
tzsetup /usr/share/zoneinfo/Australia/Sydney
Install the zoneinfo file for Australia/Sydney, assumed to be located in /usr/share/zoneinfo:
tzsetup Australia/Sydney
After a reinstall of the zoneinfo files, you can reinstall the latest installed zoneinfo file (as specified in /var/db/zoneinfo):
tzsetup -r
SEE ALSO date(1), adjtime(2), ctime(3), timezone(3), tzfile(5), adjkerntz(8), zdump(8), zic(8)DISCLAIMER
The representation of certain localities as being associated with certain countries and/or territories is for the purposes of identification
only, and does not imply any endorsement or rejection on the part of the FreeBSD Project of the territorial claims of any entity.
BUGS
Programs which are already running when tzsetup creates or updates /etc/localtime will not reflect the updated timezone. When the system is
first configured for a non-UTC hardware clock, it is necessary to run adjkerntz(8) (which normally happens as a part of system startup) in
order to update the kernel's idea of the correct timezone offset.
BSD October 21, 2009 BSD