Seeing that you did not ask the question correctly, I interpreted it as representing 15 hours 20 minutes and 30 seconds, unlike DateTime.Now. (Obviously, this is the same as "How many seconds since midnight")
TimeSpan MySpan = new TimeSpan(15, 20, 30); MySpan.TotalSeconds;
Although, if you want only seconds from the current DateTime.Now (these are not TotalSeconds, but only the current minutes of seconds), just use:
DateTime.Now.Second
source share