PowerTip: Use PowerShell to Find the Number of Seconds in Three Days
Summary: Use Windows PowerShell to easily find the number of seconds in three days.
How can I use Windows PowerShell to find how many seconds are in three days without diving into a bunch of multiplication or division?
Use the New-TimeSpan cmdlet to create a time span of three days, and select the TotalSeconds property:
PS C:\> (New-TimeSpan -Days 3).totalseconds