Current Time C#

Anyone know how to get the current time in int form?

I can get the current date using DateTime.Now. Hoping there is something similar for the time.


Depends what you mean by that. Are you talking about milliseconds past midnight or a part of the date or what?

Figured it out. I was trying to replicate the time captured in requisition logs. This seems to have done the trick.

ttReqLogRow.ChangeTime = (int)(DateTime.Now.TimeOfDay.TotalSeconds);