using System; class MainClass { public static void Main() { string t; int seconds; DateTime dt = DateTime.Now; seconds = dt.Second; if(seconds != dt.Second) { seconds = dt.Second; t = dt.ToString("T"); Console.WriteLine(t); } } }