mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Added list-current-timezone.ps1
This commit is contained in:
parent
92634a3cf9
commit
c28dec1f91
@ -23,6 +23,7 @@ inspect-exe.ps1, prints basic information of the given executable file
|
|||||||
list-anagrams.ps1, lists all anagrams of the given word
|
list-anagrams.ps1, lists all anagrams of the given word
|
||||||
list-automatic-variables.ps1, lists PowerShell automatic variables
|
list-automatic-variables.ps1, lists PowerShell automatic variables
|
||||||
list-empty-dirs.ps1, lists empty subfolders in a directory tree
|
list-empty-dirs.ps1, lists empty subfolders in a directory tree
|
||||||
|
list-current-timezone.ps1, lists the current time zone details
|
||||||
list-files.ps1, lists all files in the given folder and also in every subfolder
|
list-files.ps1, lists all files in the given folder and also in every subfolder
|
||||||
list-formatted.ps1, lists the current working directory formatted in columns
|
list-formatted.ps1, lists the current working directory formatted in columns
|
||||||
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
|
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
|
||||||
@ -40,7 +41,7 @@ list-processes.ps1, lists the local computer processes
|
|||||||
list-random-passwords.ps1, prints a list of random passwords
|
list-random-passwords.ps1, prints a list of random passwords
|
||||||
list-random-pins.ps1, prints a list of random PIN's
|
list-random-pins.ps1, prints a list of random PIN's
|
||||||
list-scripts.ps1, lists the PowerShell scripts in this repository
|
list-scripts.ps1, lists the PowerShell scripts in this repository
|
||||||
list-timezones.ps1, lists all timezones available
|
list-timezones.ps1, lists all time zones available
|
||||||
locate-city.ps1, prints the geographic location of the given city
|
locate-city.ps1, prints the geographic location of the given city
|
||||||
locate-ipaddress.ps1, prints the geographic location of the given IP address
|
locate-ipaddress.ps1, prints the geographic location of the given IP address
|
||||||
locate-zip-code.ps1, prints the geographic location of the given zip-code
|
locate-zip-code.ps1, prints the geographic location of the given zip-code
|
||||||
|
|
@ -30,6 +30,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
|
|||||||
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file
|
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file
|
||||||
* [list-anagrams.ps1](Scripts/list-anagrams.ps1) - lists all anagrams of the given word
|
* [list-anagrams.ps1](Scripts/list-anagrams.ps1) - lists all anagrams of the given word
|
||||||
* [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists PowerShell automatic variables
|
* [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists PowerShell automatic variables
|
||||||
|
* [list-current-timezone.ps1](Scripts/list-current-timezone.ps1) - lists the current time zone details
|
||||||
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
|
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
|
||||||
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software
|
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software
|
||||||
* [list-files.ps1](Scripts/list-files.ps1) - lists all files in the given folder and also in every subfolder
|
* [list-files.ps1](Scripts/list-files.ps1) - lists all files in the given folder and also in every subfolder
|
||||||
@ -48,7 +49,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
|
|||||||
* [list-random-passwords.ps1](Scripts/list-random-passwords.ps1) - prints a list of random passwords
|
* [list-random-passwords.ps1](Scripts/list-random-passwords.ps1) - prints a list of random passwords
|
||||||
* [list-random-pins.ps1](Scripts/list-random-pins.ps1) - prints a list of random PIN's
|
* [list-random-pins.ps1](Scripts/list-random-pins.ps1) - prints a list of random PIN's
|
||||||
* [list-scripts.ps1](Scripts/list-scripts.ps1) - lists the PowerShell scripts in this repository
|
* [list-scripts.ps1](Scripts/list-scripts.ps1) - lists the PowerShell scripts in this repository
|
||||||
* [list-timezones.ps1](Scripts/list-timezones.ps1) - lists all timezones available
|
* [list-timezones.ps1](Scripts/list-timezones.ps1) - lists all time zones available
|
||||||
* [locate-city.ps1](Scripts/locate-city.ps1) - prints the geographic location of the given city
|
* [locate-city.ps1](Scripts/locate-city.ps1) - prints the geographic location of the given city
|
||||||
* [locate-ipaddress.ps1](Scripts/locate-ipaddress.ps1) - prints the geographic location of the given IP address
|
* [locate-ipaddress.ps1](Scripts/locate-ipaddress.ps1) - prints the geographic location of the given IP address
|
||||||
* [locate-zip-code.ps1](Scripts/locate-zip-code.ps1) - prints the geographic location of the given zip-code
|
* [locate-zip-code.ps1](Scripts/locate-zip-code.ps1) - prints the geographic location of the given zip-code
|
||||||
|
15
Scripts/list-current-timezone.ps1
Executable file
15
Scripts/list-current-timezone.ps1
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/snap/bin/powershell
|
||||||
|
<#
|
||||||
|
.SYNTAX ./list-current-timezone.ps1
|
||||||
|
.DESCRIPTION lists the current time zone details
|
||||||
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
get-timezone
|
||||||
|
exit 0
|
||||||
|
} catch {
|
||||||
|
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
exit 1
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-timezones.ps1
|
.SYNTAX ./list-timezones.ps1
|
||||||
.DESCRIPTION lists all timezones available
|
.DESCRIPTION lists all time zones available
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
Loading…
Reference in New Issue
Block a user