mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
19 lines
350 B
PowerShell
19 lines
350 B
PowerShell
|
|
Import-IcingaLib core\tools;
|
||
|
|
|
||
|
|
function ConvertFrom-TimeSpan()
|
||
|
|
{
|
||
|
|
param(
|
||
|
|
$Seconds
|
||
|
|
);
|
||
|
|
|
||
|
|
$TimeSpan = [TimeSpan]::FromSeconds($Seconds);
|
||
|
|
|
||
|
|
return [string]::Format(
|
||
|
|
'Days: {0} Hours: {1} Minutes: {2} Seconds: {3}',
|
||
|
|
$TimeSpan.Days,
|
||
|
|
$TimeSpan.Hours,
|
||
|
|
$TimeSpan.Minutes,
|
||
|
|
$TimeSpan.Seconds
|
||
|
|
);
|
||
|
|
}
|