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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT PHP
date_parse_from_format
DATE_PARSE_FROM_FORMAT(3) 1 DATE_PARSE_FROM_FORMAT(3)date_parse_from_format - Get info about given date formatted according to the specified formatSYNOPSIS
array date_parse_from_format (string $format, string $date)
DESCRIPTION
Returns associative array with detailed info about given date.
PARAMETERS
o $format
- Format accepted by DateTime.createFromFormat(3).
o $date
- String representing the date.
RETURN VALUES
Returns associative array with detailed info about given date.
EXAMPLES
Example #1
date_parse_from_format(3) example
<?php
$date = "6.1.2009 13:00+01:00";
print_r(date_parse_from_format("j.n.Y H:iP", $date));
?>
The above example will output:
Array
(
[year] => 2009
[month] => 1
[day] => 6
[hour] => 13
[minute] => 0
[second] => 0
[fraction] =>
[warning_count] => 0
[warnings] => Array
(
)
[error_count] => 0
[errors] => Array
(
)
[is_localtime] => 1
[zone_type] => 1
[zone] => -60
[is_dst] =>
)
SEE ALSO DateTime.createFromFormat(3), checkdate(3).
PHP Documentation Group DATE_PARSE_FROM_FORMAT(3)