Add scripts
This commit is contained in:
parent
422934aef7
commit
350807c951
30 changed files with 574 additions and 0 deletions
5
Scripts/Get-TimeStamp.psm1
Normal file
5
Scripts/Get-TimeStamp.psm1
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function Get-TImeStamp {
|
||||
$tz = (Get-TimeZone).BaseUtcOffset.TotalMinutes
|
||||
$unixtime = (New-TimeSpan -Start (Get-Date "01/01/1970") -End ((Get-Date).AddMinutes(-$tz))).TotalSeconds # -3h UTC
|
||||
([string]$unixtime -replace "\..+") + "000000000"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue