none
how to get the time diffrence from givn times in file RRS feed

  • Question

  • I have file with below data, I want to get the highest time difference from this using PowerShell.

    STARTTIME:2018-12-01 04:13:15
    ENDTIME:2018-12-01 04:17:15
    -----------------------
    ----------------------
    STARTTIME:2018-12-01 04:11:15
    ENDTIME:2018-12-01 04:13:15
    ------------------------
    -----------------------
    STARTTIME:2018-12-01 04:10:15
    ENDTIME:2018-12-01 04:10:40

    Wednesday, May 15, 2019 2:01 AM

All replies

  • Get the two dates and subtract them then use "Measure-Object -Max" to find the greatest difference.


    \_(ツ)_/

    Wednesday, May 15, 2019 2:20 AM
    Moderator
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Monday, May 20, 2019 6:55 AM
    Moderator
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Monday, June 3, 2019 7:39 AM
    Moderator