mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Added tool function to get Unix Time
This commit is contained in:
parent
13a54bd117
commit
460beb2d4f
1 changed files with 4 additions and 0 deletions
4
lib/core/tools/Get-IcingaUnixTime.psm1
Normal file
4
lib/core/tools/Get-IcingaUnixTime.psm1
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
function Get-IcingaUnixTime()
|
||||||
|
{
|
||||||
|
return [int][double]::Parse((Get-Date -UFormat %s))
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue