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
84e36475b4
commit
2b5a9536ad
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