mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
18 lines
350 B
PowerShell
18 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
|
|
);
|
|
}
|