Sponsored Content
Top Forums Shell Programming and Scripting Script to change Timezone(Solaris) Post 302364455 by sandeep909 on Friday 23rd of October 2009 06:00:13 AM
Old 10-23-2009
Use TZ variable to change the date
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

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 (2 Replies)
Discussion started by: nikk
2 Replies

2. Solaris

How to change Timezone without restarting teh server

Hi I have changed my timezone using the command export TZ='Asia/Calcutta" but teh affect is taking place only in teh shell where I am logged in. If I export teh variable when I open the new session, things are fine. Can I affetct the change universally, without restarting the server. ... (2 Replies)
Discussion started by: krishan
2 Replies

3. UNIX for Advanced & Expert Users

Log for Timezone change in unix server

There is a unix server where the time zone has been changed from EST to CST.Can we get any kind of log when it was changed anywhere in the unix machine. Also the path for the same. If there is any other way to know this please let me know (3 Replies)
Discussion started by: dr46014
3 Replies

4. Programming

Shell script to get Timezone

Hi friends i need to writing a code to use the longitue and latitude to get a time zone. Example below Logitude Latitude OMAN 21.9 56.6 BRGHT 27.57 -89.4 BLUGL 26.25 -91.95 latitude lines run horizontally Longitude are vertical lines ... (13 Replies)
Discussion started by: ajayram_arya
13 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. Shell Programming and Scripting

Need Help:Shell Script for Solaris to change the dates in a file by one week

I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error: /var/tmp\n\r-> ./script.ksh date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
3 Replies

7. 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

8. Shell Programming and Scripting

Can someone please show me a very simple "expect" script to change password in Solaris please?

Ladies & Gents, Can one of you gurus please show me a very simple "expect" script to change the password in Solaris in a script, please? Nothing fancy, no error checking, no nothing. Just to change the password of a new user, it's all. Many thanks in advance. U guys have honestly earned my... (1 Reply)
Discussion started by: Hiroshi
1 Replies
XMLRPC_SET_TYPE(3)							 1							XMLRPC_SET_TYPE(3)

xmlrpc_set_type - Sets xmlrpc type, base64 or datetime, for a PHP string value

SYNOPSIS
bool xmlrpc_set_type (string &$value, string $type) DESCRIPTION
Sets xmlrpc type, base64 or datetime, for a PHP string value. Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. PARAMETERS
o $value - Value to set the type o $type - 'base64' or 'datetime' RETURN VALUES
Returns TRUE on success or FALSE on failure. If successful, $value is converted to an object. EXAMPLES
Example #1 A xmlrpc_set_type(3) example <?php $params = date("YmdTH:i:s", time()); xmlrpc_set_type($params, 'datetime'); echo xmlrpc_encode($params); ?> The above example will output something similar to: <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <dateTime.iso8601>20090322T23:43:03</dateTime.iso8601> </value> </param> </params> ERRORS
/EXCEPTIONS Issues E_WARNING with type unsupported by XMLRPC. PHP Documentation Group XMLRPC_SET_TYPE(3)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy