🟣 C# / .NET 6+
Show Seconds in Taskbar Clock (C#)
Adds a seconds display to the taskbar clock. Applies the tweak via Microsoft.Win32.Registry.
SetShowSecondsInTaskbarClock.cs
// SetShowSecondsInTaskbarClock.cs
//
// Show Seconds in Taskbar Clock.
// Adds a seconds display to the taskbar clock.
//
// Usage: dotnet new console -o SetShowSecondsInTaskbarClock, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced");
key.SetValue("ShowSecondsInSystemClock", 1, RegistryValueKind.DWord);
Console.WriteLine("Show Seconds in Taskbar Clock applied.");