Update check-christmas.ps1 and check-new-year.ps1

This commit is contained in:
Markus Fleschutz 2021-12-06 08:35:26 +01:00
parent d977df7ce0
commit 751ab1c3a5
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ try {
$Now = [DateTime]::Now $Now = [DateTime]::Now
$Diff = [Datetime]("12/25/" + $Now.Year) $Now $Diff = [Datetime]("12/25/" + $Now.Year) $Now
$Reply = "$($Diff.Days) days until Christmas." $Reply = "Christmas is in $($Diff.Days) days."
"✔️ $Reply" "✔️ $Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply" & "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success exit 0 # success

View File

@ -15,7 +15,7 @@ try {
$Now = [DateTime]::Now $Now = [DateTime]::Now
$Diff = [Datetime]("12/31/" + $Now.Year) $Now $Diff = [Datetime]("12/31/" + $Now.Year) $Now
$Reply = "$($Diff.Days) days until New Year." $Reply = "New Year is in $($Diff.Days) days."
"✔️ $Reply" "✔️ $Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply" & "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success exit 0 # success