09-06-2008
I won't be dragged into a windows verses unix discussion. I'm a Unix guy but my company uses both and so Windows expertise is valuable to me. This includes the ability to script on Windows and that is why a discussion about Powershell is interesting. Mostly I script in bat files on Windows, but when XP came out, I took the trouble to learn VBS/WSH as well. VBS is a powerful language, but Microsoft seems to have pulled the plug on it and introduced Powershell instead. I am reluctant to learn another language that may be discarded in a few months. Is Powershell really worth learning?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Friends,
I have an immediate requiement to develop a virtual serial communication driver for UNIX based system. The driver should be able to receive all the data, transmitted through the serial port. My goal is to get all the data transmitted through the serial port, do some modification in... (1 Reply)
Discussion started by: santhoshac
1 Replies
2. UNIX for Dummies Questions & Answers
i need to know abt Unix Development,History,Features n Everything.....
:confused: (2 Replies)
Discussion started by: Shank
2 Replies
3. Shell Programming and Scripting
Hi all
I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Discussion started by: sakthifire
9 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am supposed to create the website to perform some monitoring and management activities on unix server.
Activities includes cpu usage,displays currently runing processes,deleting files on the server and so on.
Please tell which is best web based language(.net or java) to develop... (6 Replies)
Discussion started by: S_venkatesh
6 Replies
5. What is on Your Mind?
Hi Guys, I am into unix administration past few years, i am interested in development, Purely from the Job Market View, should i shift from administration and move to development, will it reduce the options i have (i mean not many companies are into development)
Suggestions/Opinions ??? (4 Replies)
Discussion started by: mpdevul
4 Replies
6. Shell Programming and Scripting
I am working in production support in an leading bank and more of my job is more in oracle/plsql. I am learning unix shell scripting and have started development in the same.I would like to know regarding the scope of these two in the industry.Also would like to know about other scripting... (2 Replies)
Discussion started by: jesthomas
2 Replies
7. What is on Your Mind?
Any Unix Admins out there who were tasked with upgrading and maintaining java/jboss installs and possibly related apps?
How did it work out?
Any tools to allow developers to tweak their java settings, like a console? I just started looking into this, if anyone has experience I'd appreciate... (0 Replies)
Discussion started by: allenhibbert
0 Replies
8. Shell Programming and Scripting
I had a unix scripts in prod. I need to made changes in those scripts which I don't have the edit access. I need to move those scripts from prod to dev to edit. Please tell me how to switch from production to development, So that I can made changes in dev and again move those scripts to Prod.
... (3 Replies)
Discussion started by: Rajeswararao
3 Replies
9. Linux
I'm slowly hacking away at a zsh script that shows some promise as a command line tool. I want to learn more about the conventions regarding command line tool development in Unix (and/or macOS), but don't really know where to look for this information.
What is the correct way, or convention, to... (2 Replies)
Discussion started by: MonilGomes
2 Replies
LEARN ABOUT MOJAVE
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.63
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) 2013 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.18.2 2013-10-28 DateTime::TimeZone::Local::Win32(3)