Sponsored Content
Full Discussion: TimeZone changing in Solaris
Top Forums UNIX for Advanced & Expert Users TimeZone changing in Solaris Post 33109 by nikk on Tuesday 17th of December 2002 08:31:58 AM
Old 12-17-2002
TimeZone changing in Solaris

I've date back one of my Unix WS ,after that again i want to return to real date,but after running:
# date -u mmddHHMMyy
the clock immediately returns to GMT timezone that is different with my local timezone.
any suggestion could be useful...
tanx
--nikk
 

9 More Discussions You Might Find Interesting

1. Solaris

changing ip and hostname on solaris

dears does any one know in steps how can i change ip and hostname on solaris (10 Replies)
Discussion started by: murad.jaber
10 Replies

2. Shell Programming and Scripting

Script to change Timezone(Solaris)

india 22/11/2009 10:00:00 AM sweden 22/11/2009 01:30:00 PM As mentioned above i will get the datetime string from my customer and i need to change that String into diffrnt timezone as mentioned above. ---------- Post updated at 01:54 AM ---------- Previous update was at 01:01 AM ----------... (5 Replies)
Discussion started by: vikas482
5 Replies

3. Red Hat

changing timezone

Hi, I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada. Please suggest. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

5. Solaris

Change timezone in Solaris 11

I was trying to change timezone on my new solaris-11 server to US/Pacific, but not successfull. root@tsapp01 # grep TZ /etc/default/init TZ=localtime Can somebody share something on this ? It seems, /etc/TIMEZONE is no longer in use for Solaris 11 (2 Replies)
Discussion started by: solaris_1977
2 Replies

6. Solaris

[Solved] Question changing timezone rules / zic

Dear, One of our customer which is located in Iraq/Baghdad, has informed us about a official change in daylight saving time in few days later and has asked us to fix this issue. So, the current timezone of that system is set as 'Asia/Baghdad' which is correct. however to fix the issue I went... (0 Replies)
Discussion started by: Anti_Evil
0 Replies

7. Red Hat

Changing java timezone on RHEL 5

Hi all, I faced with some problem when I changing java timezone on RHEL 5. I used tzupdater.jar tool from oracle to update java timezone. But I missed stopping applications before I run tzupdater tool. So some applications working with wrong timezone. I think there's some cached instance of... (0 Replies)
Discussion started by: sembii
0 Replies

8. Solaris

Changing only time zone file not the timezone without reboot

Hello all, I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed, can this take effect without rebooting Solaris 10? (9 Replies)
Discussion started by: Amr.Es
9 Replies

9. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies
INTLDATEFORMATTER.SETTIMEZONE(3)					 1					  INTLDATEFORMATTER.SETTIMEZONE(3)

IntlDateFormatter::setTimeZone - Sets formatters timezone

	Object oriented style

SYNOPSIS
public boolean IntlDateFormatter::setTimeZone (mixed $zone) DESCRIPTION
Procedural style boolean datefmt_set_timezone (mixed $zone) Sets the timezone that will be used when formatting dates or times with this object. PARAMETERS
o $zone - The timezone to use for this formatter. This can be specified in the following forms: o NULL, in which case the default timezone will be used, as specified in the ini setting date.timezone or through the func- tion date_default_timezone_set(3) and as returned by date_default_timezone_get(3). o An IntlTimeZone, which will be used directly. o A DateTimeZone. Its identifier will be extracted and an ICU timezone object will be created; the timezone will be backed by ICUs database, not PHPs. o A string, which should be a valid ICU timezone identifier. See IntlTimeZone.createTimeZoneIDEnumeration(3). Raw offsets such as "GMT+08:30" are also accepted. RETURN VALUES
Returns TRUE on success and FALSE on failure. EXAMPLES
Example #1 IntlDateFormatter.setTimeZone(3) examples <?php ini_set('date.timezone', 'Europe/Amsterdam'); $formatter = IntlDateFormatter::create(NULL, NULL, NULL, "UTC"); $formatter->setTimeZone(NULL); echo "NULL ", $formatter->getTimeZone()->getId(), " "; $formatter->setTimeZone(IntlTimeZone::createTimeZone('Europe/Lisbon')); echo "IntlTimeZone ", $formatter->getTimeZone()->getId(), " "; $formatter->setTimeZone(new DateTimeZone('Europe/Paris')); echo "DateTimeZone ", $formatter->getTimeZone()->getId(), " "; $formatter->setTimeZone('Europe/Rome'); echo "String ", $formatter->getTimeZone()->getId(), " "; $formatter->setTimeZone('GMT+00:30'); print_r($formatter->getTimeZone()); The above example will output: NULL Europe/Amsterdam IntlTimeZone Europe/Lisbon DateTimeZone Europe/Paris String Europe/Rome IntlTimeZone Object ( [valid] => 1 [id] => GMT+00:30 [rawOffset] => 1800000 [currentOffset] => 1800000 ) SEE ALSO
IntlDateFormatter.getTimeZone(3). PHP Documentation Group INTLDATEFORMATTER.SETTIMEZONE(3)
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy