08-07-2013
Hi Alister,
Adding daylight savings time or any other time zones does not correct this issue. I still see the hour result being incremented by -1 or 1, whether it's in March, October, July, February, November. I'm still befuddled by this...
Thanks!
---------- Post updated at 09:47 AM ---------- Previous update was at 08:15 AM ----------
I wrote an if statement adding or subtracting an hour when I encounter this, so the problem is solved for me. But it's less than ideal that I have to write additional code to work around an important and widely used script function.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to get previous date from date command. I am using ksh shell.
Exmp:
today is 2008.09.04
I want the result : 2008.09.03
Please help.
Thanks in advance. (4 Replies)
Discussion started by: rinku
4 Replies
2. Shell Programming and Scripting
Hi,
does anybody know how to format `date` command correctly to return the day of the week? Thanks -A
I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies
3. Shell Programming and Scripting
foreach x ( *.foo)
echo "move file?"
set move=$<
if($move == y) then
echo "enter new pathname:"
set path=$<
mv $x $path/$x
endif
end
ok guys, im creating this script so i can move files with *.foo extensions and *.bar... (6 Replies)
Discussion started by: pantelis
6 Replies
4. Shell Programming and Scripting
Hi
I want to get tomorrow and yesterday date from date command. My shell is KSH and server is AIX. I tried several options, but unable to do. Please help on this.
Regards
Rajesh (5 Replies)
Discussion started by: rajeshmepco
5 Replies
5. UNIX for Advanced & Expert Users
Hello everyone,
I have a small problem that I'm stuck for several days and I do not go out.
I tell you, I have a php script that I want to run crontab, it uses a compiled bcompiler file.
In my php file
if(file_exists("php/Alibrary.phb")){
include_once("php/Alibrary.phb");
What I do... (6 Replies)
Discussion started by: nicolas33770
6 Replies
6. Shell Programming and Scripting
Hi all,
Need an urgent help on the below scenario.
script:
awk -F","
'BEGIN { #some variable assignment}
{ #some calculation and put values in array}
END {
year=#getting it from array and assume this will be 2014
month=#getting it from array and this will be 05
date=#... (7 Replies)
Discussion started by: vijaidhas
7 Replies
7. HP-UX
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Discussion started by: lnemitz
2 Replies
8. Shell Programming and Scripting
So as I write this today is two days after the clocks go back here in the UK. I have a script that worked last week. Yesterday it developed a bug. I eventually found the culprit is Gnu Date.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS... (10 Replies)
Discussion started by: apmcd47
10 Replies
9. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
timezone(5) File Formats Manual timezone(5)
NAME
timezone, dst - difference between Universal (Greenwich mean) time and Local time
VALUES
Default
A default value of indicates that the default value for the timezone tunable (420 minutes west of Greenwich, England ) is to be interpreted
as a daylight savings time value.
Allowed values
The value for the tunable should correspond to a defined time zone, and thus should be at least a multiple of 15 minutes. More commonly
the value will be a multiple of 60 or 30 minutes, corresponding to an hour or half-hour time zone.
The value of the tunable specifies if the time is with daylight savings or not. When the value is set to then the system is using daylight
savings time, and if it is set to the system is not.
Recommended values
Any allowed value is equally recommended. However, the chosen value should correspond to the time zone and daylight saving scheme of the
system site or to a time zone and daylight saving scheme which has meaning for applications or users.
DESCRIPTION
The tunable is the difference between Greenwich mean time (Universal Time) and local time, expressed as minutes west of Greenwich, England.
The tunable indicates whether the tunable is to be interpreted as a standard or daylight savings time value.
These tunables provide a way to convert between Grenwich Mean Time (or Universal Time) and local time. Although is a tunable, it is not
used to affect the behavior of the system. Rather, it is used to remember time zone information when the system is rebooted. This infor-
mation is returned by under HP-UX extensions. The tunable is independent of other methods of indicating time zones. For example, gets or
sets the time in either Universal or local time by using the environment variable. In this case the tunable has no effect. In general, it
is best to refer to the manpages for specific system calls such as and to check if there is a dependency on the tunable.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to these tunables take effect at the next reboot.
When Should the Value of This Tunable Be Changed?
These tunables may be changed to match the system's geographic time zone or the time zone of users.
What Other Tunable Values Should Be Changed at the Same Time?
The and tunables should always be set and interpreted as a pair of values.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
and were developed by HP.
Tunable Kernel Parameters timezone(5)