mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-28 02:43:35 +01:00
Update check-christmas.ps1 and check-new-year.ps1
This commit is contained in:
parent
d977df7ce0
commit
751ab1c3a5
@ -15,7 +15,7 @@ try {
|
||||
$Now = [DateTime]::Now
|
||||
$Diff = [Datetime]("12/25/" + $Now.Year) – $Now
|
||||
|
||||
$Reply = "$($Diff.Days) days until Christmas."
|
||||
$Reply = "Christmas is in $($Diff.Days) days."
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
exit 0 # success
|
||||
|
@ -15,7 +15,7 @@ try {
|
||||
$Now = [DateTime]::Now
|
||||
$Diff = [Datetime]("12/31/" + $Now.Year) – $Now
|
||||
|
||||
$Reply = "$($Diff.Days) days until New Year."
|
||||
$Reply = "New Year is in $($Diff.Days) days."
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
exit 0 # success
|
||||
|
Loading…
Reference in New Issue
Block a user