< Back

Get-MJUnixTimeToNormal

Sat Jan 11, 2020 3:49 am

NAME Get-MJUnixTimeToNormal



SYNOPSIS

This function is not public, it????s used in my modules to translate date time





SYNTAX

Get-MJUnixTimeToNormal [-UnixTime] <Int32> [<CommonParameters>]





DESCRIPTION

This function will convert an int unix time to dateTime

Created by Ispep

Added 2016-06-07

WWW.Automatiserar.se





PARAMETERS

-UnixTime <Int32>



Required? true

Position? 1

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.DateTime





NOTES





This component will only be used inside the module.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MJUnixTimeToNormal -UnixTime 1465335719



7 juni 2016 21:41:59









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$myTime = Get-MJUnixTimeToNormal -UnixTime 1465335719



$myTime # Date time object











RELATED LINKS