Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

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

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles