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

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon