What Operating System and version do you have?
This is so important.
What is the normal value of $TZ after logging in as a GMT user.
If you have a /etc/TIMEZONE file , does it it the same value?
Stupid question. What (and where?) is CST ? What is the offset from GMT. Does it have daylight saving time on the same dates as Europe or some other dates.
Update: Found it in /etc/tztab on HP-UX. Might be somewhere in USA:
Assuming that your O/S knows about this timezone, we would therefore need this line in the user's shell profile:
Ps: I have read about changes to Daylight Saving Time in USA. Make sure that your O/S has an up-to-date timezone table. Many posters from USA will know a lot more about this than I do.
Hi,
I have Solaris 7 installed.
When I give the command 'locale' from the box, I am getting all the environment variables as 'de' ! I want it to be in English. How do I change the locale ??
TIA,
Srinivas. (1 Reply)
Hi,
In the sample program, I am trying to print a Japanese string.
The code is as follows:
main()
{
setlocale(LC_ALL,"");
printf("String is %S\n", L"JAP");
// Note "JAP" is a valid japanese string
}
If locale is C, the string gets printed, but if it a valid japanese locale, it... (1 Reply)
:confused:
Can anyone tell me how to test that locale is working properly in commands like awk, basename, bg, cd, cmp, col, command, csplit, cut, echo, egrep
For ex. suppose I have changed locale using
LC_ALL=german_germany.8859
export LC_ALL
now i want to test(see) it's effect on... (3 Replies)
HI ;
I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1.
So i have every time to "set TZ=GMT ; export $TZ" .
How can i set the TZ=GMT at the startup defenitely.
Thanks
:) (7 Replies)
Hi All,
I need to install a swedish locale on a solaris machine(ver. 10).I have the package downloaded.Can anyone please guide me through the steps and things i need to keep in mind when doing the same? (7 Replies)
Hi all,
today i encounter one weird problem.
I tried to do the sftp of one file from one server to another and try to load that file in some datawarehouse with a informatica(extraction,tranformation and loading tool) . But the tool is rejecting all
later i found that there is some problem in... (0 Replies)
Greetings Forumers!
I've been fighting a locale problem on a v490 running Solaris 10 u4 (8/07). When I login to the system, I get several "locale" error messages:
user1's password:
Last login: Wed May 26 2010 09:14:13 -0400 from system1
You have mail.
couldn't set locale correctly
couldn't... (0 Replies)
I am upgrading a machine to Solaris 10 and noticed a change that would cause a problem for us. We have always used en_US.ISO8859-1 and selected that when setting up the new system.
This is the format on our old system
$ date
Fri Sep 21 10:35:51 PDT 2012
And this is what I got on our old... (1 Reply)
Discussion started by: Bryan.Eidson
1 Replies
LEARN ABOUT OPENSOLARIS
gettimeofday
gettimeofday(3UCB) SunOS/BSD Compatibility Library Functions gettimeofday(3UCB)NAME
gettimeofday, settimeofday - get or set the date and time
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
#include <sys/time.h>
int gettimeofday(tp, tzp)
struct timeval *tzp;
struct timezone *tzp;
int settimeofday(tp, tzp)
struct timeval *tzp;
struct timezone *tzp;
DESCRIPTION
The system's notion of the current Greenwich time is obtained with the gettimeofday() call, and set with the settimeofday() call. The cur-
rent time is expressed in elapsed seconds and microseconds since 00:00 GMT, January 1, 1970 (zero hour). The resolution of the system clock
is hardware dependent; the time may be updated continuously, or in clock ticks.
long tv_sec; /* seconds since Jan. 1, 1970 */
long tv_usec; /* and microseconds */
tp points to a timeval structure, which includes the following members:
If tp is a NULL pointer, the current time information is not returned or set.
tzp is an obsolete pointer formerly used to get and set timezone information. tzp is now ignored. Timezone information is now handled using
the TZ environment variable; see TIMEZONE(4).
Only the privileged user may set the time of day.
RETURN VALUES
A -1 return value indicates an error occurred; in this case an error code is stored in the global variable errno.
ERRORS
The following error codes may be set in errno:
EINVAL tp specifies an invalid time.
EPERM A user other than the privileged user attempted to set the time.
SEE ALSO cc(1B), adjtime(2), ctime(3C), gettimeofday(3C), TIMEZONE(4)NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system
libraries or in multi-thread applications is unsupported.
tzp is ignored in SunOS 5.X releases.
tv_usec is always 0.
SunOS 5.11 30 Oct 2007 gettimeofday(3UCB)