Using Powershell to find the difference between two times

I needed to find the difference between two times for something I’m currently working on in Configuration Manager 2012 R2 (Details of this to come in another post when I complete it next week) and I wrote a simple Powershell function that allows me to do just that.

The function takes a start time and an end time as parameters and returns a custom object containing the start time, end time and time difference.

You can find it on my Github powershell rep in the ‘Tools directory and the script is called: Get-TimeDifference

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.