Functions/Data/ConvertTo-UnixTime.ps1
Function ConvertTo-UnixTime { [cmdletbinding()] Param ( # date to convert to unix [Parameter(Mandatory=$true,ValueFromPipeline=$true)] [datetime] $Date ) Process { [Math]::Floor([decimal](Get-Date($Date).ToUniversalTime()-uformat "%s")) } } |