Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help with Timezone locale. Post 302581300 by jim mcnamara on Monday 12th of December 2011 05:05:02 PM
Old 12-12-2011
In that users .profile or .bashrc

Code:
export TZ=(zone you want goes here)

This User Gave Thanks to jim mcnamara For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change locale ?

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)
Discussion started by: snsrini
1 Replies

2. Programming

Locale setting

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)
Discussion started by: Dippan
1 Replies

3. UNIX for Dummies Questions & Answers

Input Locale

Hi Guys, Any ideas on how to install the zh_CN (Simplified Chinese) input locale for AIX5.2 ? Can't seem to find it any where. S. (2 Replies)
Discussion started by: stumpy
2 Replies

4. UNIX for Dummies Questions & Answers

Using locale

: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)
Discussion started by: alodha
3 Replies

5. UNIX for Advanced & Expert Users

Timezone

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)
Discussion started by: oss
7 Replies

6. Solaris

Installation of locale..

Hi All, i am pretty new to sun solaris env.I need to install a french locale onto my machine.Could you please guide me through the steps. (1 Reply)
Discussion started by: sankasu
1 Replies

7. Solaris

Locale installation..

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)
Discussion started by: sankasu
7 Replies

8. Shell Programming and Scripting

sftp without locale

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)
Discussion started by: narang.mohit
0 Replies

9. Solaris

Locale woes

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)
Discussion started by: bluescreen
0 Replies

10. Solaris

Locale changes?

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
GEOIP_TIME_ZONE_BY_COUNTRY_AND_REGION(3)				 1				  GEOIP_TIME_ZONE_BY_COUNTRY_AND_REGION(3)

geoip_time_zone_by_country_and_region - Returns the time zone for some country and region code combo

SYNOPSIS
string geoip_time_zone_by_country_and_region (string $country_code, [string $region_code]) DESCRIPTION
The geoip_time_zone_by_country_and_region(3) function will return the time zone corresponding to a country and region code combo. In the United States, the region code corresponds to the two-letter abbreviation of each state. In Canada, the region code corresponds to the two-letter province or territory code as attributed by Canada Post. For the rest of the world, GeoIP uses FIPS 10-4 codes to represent regions. You can check http://www.maxmind.com/app/fips10_4 for a detailed list of FIPS 10-4 codes. This function is always available if using GeoIP Library version 1.4.1 or newer. The data is taken directly from the GeoIP Library and not from any database. PARAMETERS
o $country_code - The two-letter country code (see geoip_country_code_by_name(3)) o $region_code - The two-letter (or digit) region code (see geoip_region_by_name(3)) RETURN VALUES
Returns the time zone on success, or FALSE if the country and region code combo cannot be found. EXAMPLES
Example #1 A geoip_time_zone_by_country_and_region(3) example using region code for US/Canada This will print the time zone for country CA (Canada), region QC (Quebec). <?php $timezone = geoip_time_zone_by_country_and_region('CA', 'QC'); if ($timezone) { echo 'Time zone for CA/QC is: ' . $timezone; } ?> The above example will output: Time zone for CA/QC is: America/Montreal Example #2 A geoip_time_zone_by_country_and_region(3) example using FIPS codes This will print the time zone for country JP (Japan), region 01 (Aichi). <?php $timezone = geoip_time_zone_by_country_and_region('JP', '01'); if ($timezone) { echo 'Time zone for JP/01 is: ' . $timezone; } ?> The above example will output: Time zone for JP/01 is: Asia/Tokyo PHP Documentation Group GEOIP_TIME_ZONE_BY_COUNTRY_AND_REGION(3)
All times are GMT -4. The time now is 04:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy