Some one had made a twitter posting of the number of minutes to the Inauguration later this week. I didn’t want to depend on their posts to keep me updated, so I made this little PowerShell script to give me the time to the minute. It can run all day long, and will stop at noon this coming Friday.

Here’s the code in case you would like to run your own.

 

clear
do
{   
    [long] $Minutes = [long]$((New-TimeSpan $(Get-Date) $(Get-Date -Month 1 -Day 20 -Year 2017 -Hour 12 -Minute 0 -Second 0)).TotalMinutes)
    "$Minutes minutes to the inauguration"
    Start-Sleep -Seconds 60
    clear
}while($Minute -gt -1)

"Donald Trump is President of the United States!"

Here’s the output:

mintoinaug

It’s pretty exciting, so if you have a heart condition, please consult your doctor before running this script.