October 17th, 2015

PowerTip: Use PowerShell to Display Number of Minutes in a Day

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to display the number of minutes in a day.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily display how many minutes are in a day?

Hey, Scripting Guy! Answer Create a timespan equal to one day, and then select the total minutes from it:

(New-TimeSpan -Days 1).totalminutes

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.