09-05-2013
Actually, as this Section suggests I need a Windows solution.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
One of our jobs retrieves data from tables and writes it to files. This job was running for around 15 minutes for the past 8 months. Now, this job is runnig for 45-50 minutes. I checked with the DBA's and found no issues with database. The time taken by to job to write to the file is... (5 Replies)
Discussion started by: ranj@chn
5 Replies
2. UNIX for Dummies Questions & Answers
I need help with this:
Can any one tell me what does these below mean:
1. "\(.\).*") != '/'
2. sed 's+^\./++;s+/.*++'
3. sed "s+${f}/+ +
Thanks in advance (7 Replies)
Discussion started by: moe2266
7 Replies
3. Shell Programming and Scripting
Hi ,
I want gzip a folder te55 which has got 3 files test1.test2,test3
the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself...
Is it possible...
thanks in advance
sam (5 Replies)
Discussion started by: sam99
5 Replies
4. Shell Programming and Scripting
hi,
I am using this to get previous month
`date -d"1 month ago" "+%m"`
But will it work for january?..will it return 12?
Please advice. (2 Replies)
Discussion started by: vanathi
2 Replies
5. Shell Programming and Scripting
Hi,
Should be a difference between ']]*' and ']+' ?
I use them in bash with sed and grep.
Thanks (1 Reply)
Discussion started by: ynir
1 Replies
6. Shell Programming and Scripting
Hi All,
If I had a string that was a combination of plain text and quoted text - For ex
String: This "sentence is" a combination of "multiple words"
I wanted to know how I can write a reg-ex that splits the above string into the following
result = This
result = sentence is
result = a... (7 Replies)
Discussion started by: garric
7 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I am trying to send a mail by using MAILX option to my YAHOO-Id.
It is giving the following error. Can any one help me to find what is the problem? Do i need to get any kind of settings in my UNIX box for using MAILX?
The bounce mail is as below:
Message 1:
From MAILER-DAEMON Tue... (2 Replies)
Discussion started by: Raamc
2 Replies
8. Solaris
Hi Guys,
I have a doubt either to Reboot the server after Replacing the disk0.
I have two disks under vxvm root mirrored and i had a problem with primary disk so i replace the disk0 failed primary disk and then mirrored. After mirroring is it reboot required ? (7 Replies)
Discussion started by: kurva
7 Replies
9. Shell Programming and Scripting
Hi masters,
I have one doubt,
lets's say file1 has the following contents,
1
2.0
3.1
5.5
7
5.10
5.9
How to sort these contents to get the o/p like
1
2.0
3.1
5.5
5.9
5.10
7 (8 Replies)
Discussion started by: ecearund
8 Replies
10. UNIX for Dummies Questions & Answers
I have a query in regards to SFTP....We have a SFTP ID/PWD, so say if the password changes
Would it fail my SFTP?
SFTP uses public/private keys for authentication right? So would it endanger my existing process???? (1 Reply)
Discussion started by: saggiboy10
1 Replies
LEARN ABOUT OSX
datetime::timezone::local::win32
DateTime::TimeZone::Local::Win32(3) User Contributed Perl Documentation DateTime::TimeZone::Local::Win32(3)
NAME
DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows
VERSION
version 1.51
SYNOPSIS
my $tz = DateTime::TimeZone->new( name => 'local' );
my $tz = DateTime::TimeZone::Local->TimeZone();
DESCRIPTION
This module provides methods for determining the local time zone on a Windows platform.
HOW THE TIME ZONE IS DETERMINED
This class tries the following methods of determining the local time zone:
o $ENV{TZ}
It checks $ENV{TZ} for a valid time zone name.
o Windows Registry
When using the registry, we look for the Windows time zone and use a mapping to translate this to an Olson time zone name.
o Windows Vista and 2008
We look in "SYSTEM/CurrentControlSet/Control/TimeZoneInformation/" for a node named "/TimeZoneKeyName". If this exists, we use
this key to look up the Olson time zone name in our mapping.
o Windows NT, Windows 2000, Windows XP, Windows 2003 Server
We look in "SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time Zones/" and loop through all of its sub keys.
For each sub key, we compare the value of the key with "/Std" appended to the end to the value of
"SYSTEM/CurrentControlSet/Control/TimeZoneInformation/StandardName". This gives us the English name of the Windows time zone,
which we use to look up the Olson time zone name.
o Windows 95, Windows 98, Windows Millenium Edition
The algorithm is the same as for NT, but we loop through the sub keys of "SOFTWARE/Microsoft/Windows/CurrentVersion/Time
Zones/"
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.16.2 2012-10-17 DateTime::TimeZone::Local::Win32(3)