I have the following output from a cmdlet in powershell, I would like to extract timestamp from output so that I can select jobs which has elapsed time > 24 hours
Command : Get-JAMSEntry -Name * -Server xxxxxx -State Executing
Output :
Entry Name Description
----- ---- -----------
1 Sample Executing, elapsed time: 602.18:57:06.
3 Sample Executing, elapsed time: 481.18:57:02.
5 Sample Halted , elapsed time: 484.18:56:58.
7 Sample Hold, elapsed time: 680.18:56:55.
7 Sample Executing, elapsed time: 680.18:56:54.
7 Sample Executing, elapsed time: 680.18:56:53.
9 Sample Halted, elapsed time: 666.18:57:09.
1 Sample halted, elapsed time: 684.18:57:01.
Appreciate the help.
Thanks
.18? If hours are a float why:mm:ss? In general I'd use a select to split Description into calculated properties State and ElapsedTime.