Add scripts
This commit is contained in:
parent
45b95998ae
commit
8609b6ff17
10 changed files with 213 additions and 0 deletions
9
Scripts/ConvertFrom-UnixTime.psm1
Normal file
9
Scripts/ConvertFrom-UnixTime.psm1
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function ConvertFrom-UnixTime {
|
||||
param (
|
||||
$intime
|
||||
)
|
||||
$EpochTime = [DateTime]"1/1/1970"
|
||||
$TimeZone = Get-TimeZone
|
||||
$UTCTime = $EpochTime.AddSeconds($intime)
|
||||
$UTCTime.AddMinutes($TimeZone.BaseUtcOffset.TotalMinutes)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue