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

Doctor Scripto

Dr 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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment