Your question is not entirely clear, but you can after:
TimeSpan timeOfUtcDay = DateTime.UtcNow.TimeOfDay;
double seconds = timeOfUtcDay.TotalSeconds;
For example, it is currently around 7:15 BST (Europe / London), which is 6:15 UTC. The above code gives 22573.6674426, which is slightly larger (6 * 60 + 15) * 60.
source
share