Repository navigation
Show Time
github-actions edited this page May 1, 2026
·
1 revision
external help file: ModernConveniences-help.xml Module Name: ModernConveniences online version: schema: 2.0.0
Displays a formatted date using powerline font characters.
Show-Time [-Format] <String[]> [-Date <DateTime>] [-Separator <String>] [-ForegroundColor <ConsoleColor>]
[-BackgroundColor <ConsoleColor>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Show-Time Iso8601Z Iso8601WeekDate Iso8601OrdinalDate -Separator ' * '
( 2020-12-08T03:59:39Z * 2020-W50-1 * 2020-342 ) (but using powerline graphics)
The format to serialize the date as.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe date/time value to format.
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-Date)
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe separator to use between formatted dates.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: " $(Get-Unicode 0x2022) "
Accept pipeline input: False
Accept wildcard characters: FalseThe foreground console color to use.
Type: ConsoleColor
Parameter Sets: (All)
Aliases:
Accepted values: Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White
Required: False
Position: Named
Default value: $host.UI.RawUI.BackgroundColor
Accept pipeline input: False
Accept wildcard characters: FalseThe background console color to use.
Type: ConsoleColor
Parameter Sets: (All)
Aliases:
Accepted values: Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White
Required: False
Position: Named
Default value: $host.UI.RawUI.ForegroundColor
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.