Create random powerup value from time

Create random powerup value from time


	DateTime ^DateTimeNow;
	DateTimeNow = DateTime::Now;
	SomeVariable = Convert::ToInt32(DateTimeNow->Minute) + Convert::ToInt32(DateTimeNow->Second) + Convert::ToInt32(DateTimeNow->Millisecond);		//Create a random startup value

Date & Time

DateTime vs ^DateTime

DateTime (without caret) is the way to go and makes life easier for comparison operations etc.

(more…)

TimeSpan and Calculating Time Difference

TimeSpan vs ^TimeSpan

TimeSpan (without caret) is the way to go and makes life easier for comparison operations etc.

(more…)