Skip to content

ConvertFrom-EpochTime

SYNOPSIS

Convert from UNIX epoch time.

SYNTAX

ConvertFrom-EpochTime [-UnixTime] <String> [<CommonParameters>]

DESCRIPTION

Convert from UNIX epoch time.

This command will determine if the provided UNIX time is seconds or milliseconds.

EXAMPLES

Example 1

PS > ConvertFrom-EpochTime -UnixTime 1621809982
Sunday, May 23, 2021 5:46:22 PM

Convert from epoch time.

Example 2

PS > ConvertFrom-EpochTime -UnixTime 1621723222000
Saturday, May 22, 2021 5:40:22 PM

Convert from epoch time.

PARAMETERS

-UnixTime

The UNIX epoch time, either seconds or milliseconds.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.DateTime

NOTES

Online Version

ConvertFrom-TwitterV1Date