03-03-2009
Did you guys modify the /etc/TIMEZONE file as well?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm using Linux-Mandrake 8.0 in my laptop. After I logged in as a "root", I added a new path in my .bashrc file (I use bash shell). Then I can observe it has been set correctly by typing echo $PATH.
But, when I log in again as a personal account, not "root", then I open my bash shell, and type... (5 Replies)
Discussion started by: yishen
5 Replies
2. UNIX for Dummies Questions & Answers
When a user connects via ssh to one of out Sun V120 boxes the following message is displayed.
"couldn't set locale correctly"
The .profile has the following line
# @(#)local.profile 1.6 98/02/06 SMI
stty istrip
stty erase ^H
So I put a set -x in the .profile and re sourced it and... (1 Reply)
Discussion started by: mattd
1 Replies
3. UNIX for Dummies Questions & Answers
When logging into solaris box through ssh, my profile does not get set correctly and I'm presented with the default ksh prompt "$".
When logging in through telnet, everything is set correctly. Is there a special profile that sshd runs?
ssh2: F-Secure SSH 2.4.0 (build 15) on sparc-sun-solaris2.8 (0 Replies)
Discussion started by: dangral
0 Replies
4. Red Hat
Hi,
I need to set a locale to my linux machine which has redhat enterprise linux 4
how should I do that.
And also when i did locale -a, I have got three versions for each locale type
with different .extensions like utf8,iso88951 and soon
which file should I use for setting locale.
... (1 Reply)
Discussion started by: eamani_sun
1 Replies
5. Solaris
hi All,
I'm using sun OS 5.10.
All locales are set to en_US.ISO8859-1 in /etc/profile/init file.
I'm using one functional user.When I tried to "sesu - functionalUser",its giving me error like "Couldn't set locale correctly".In functional user profile i'm tring to set locales to en_US.After... (1 Reply)
Discussion started by: Kathraji
1 Replies
6. Solaris
Hi gentlemen.
I would change LANG=C to iso_8859_5.
I have tried some variante, but it doesn't work.
Thanks. (24 Replies)
Discussion started by: wolfgang
24 Replies
7. Solaris
Dear All,
I Have problem at my console (Ultra 24, solaris 10 x86), when i type dmesg always come out :
like this
You have new mail.
root@console # bash
root@console # dmesg
couldn't set locale correctly
couldn't set locale correctly
So how to fix it...?
Best Regards
simbah (3 Replies)
Discussion started by: mbah_jiman
3 Replies
8. Solaris
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies
9. Solaris
Pls help me to set the japanese locale in Solaris 10. I have checked JP locale has been already installed on Solaris BOX.
Thanks,
Karan N (2 Replies)
Discussion started by: nirka01
2 Replies
10. SCO
I'm trying to virtualize an instance of SCO Open Server 5.0.2c in VirtualBox (called VM- A) , I can not configure the network (NIC).
The NIC I'm using is PCnet -FAST III (Am79C973 ) (this NIC works with VirtualBox + SCO 5.0.5M)
When I add from ' Add new LAN adapter' I detects the NIC... (2 Replies)
Discussion started by: flako
2 Replies
LEARN ABOUT OPENSOLARIS
gettimeofday
gettimeofday(3C) Standard C Library Functions gettimeofday(3C)
NAME
gettimeofday, settimeofday - get or set the date and time
SYNOPSIS
#include <sys/time.h>
int gettimeofday(struct timeval *tp, void *tzp);
int settimeofday(struct timeval *tp, void *tzp);
DESCRIPTION
The gettimeofday() function gets and the settimeofday() function sets the system's notion of the current time. The current time is
expressed in elapsed seconds and microseconds since 00:00 Universal Coordinated Time, January 1, 1970. The resolution of the system clock
is hardware dependent; the time may be updated continuously or in clock ticks.
The tp argument points to a timeval structure, which includes the following members:
long tv_sec; /* seconds since Jan. 1, 1970 */
long tv_usec; /* and microseconds */
If tp is a null pointer, the current time information is not returned or set.
The TZ environment variable holds time zone information. See TIMEZONE(4).
The tzp argument to gettimeofday() and settimeofday() is ignored.
Only privileged processes can set the time of day.
RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The settimeofday() function will fail if:
EINVAL The structure pointed to by tp specifies an invalid time.
EPERM The {PRIV_SYS_TIME} privilege was not asserted in the effective set of the calling process.
The gettimeofday() function will fail for 32-bit interfaces if:
EOVERFLOW The system time has progressed beyond 2038, thus the size of the tv_sec member of the timeval structure pointed to by tp is
insufficient to hold the current time in seconds.
USAGE
If the tv_usec member of tp is > 500000, settimeofday() rounds the seconds upward. If the time needs to be set with better than one second
accuracy, call settimeofday() for the seconds and then adjtime(2) for finer accuracy.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |gettimeofday() is Standard. |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
adjtime(2), ctime(3C), gethrtime(3C), TIMEZONE(4), attributes(5), privileges(5), standards(5)
SunOS 5.11 1 Aug 2003 gettimeofday(3C)