In your first code sample you used an int as type for your time variable, that is not correct.
Use this (just as Scott suggested already) DateTime time = DateTime.UtcNow;
Now you can say things like time.AddSeconds(15); or use a TimeSpan like I did.
Reputation Points: 2023
Solved Threads: 644
Senior Poster
Offline 3,736 posts
since Oct 2008