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

Read 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. TimeSpan is a value type so should always be used without the ^. When you use the caret then you get a boxed value that can't be serialized etc. General Usage //Get time difference TimeSpan TimeFromStart; TimeFromStart […]

Read More

Date & Time

DateTime vs ^DateTime DateTime (without caret) is the way to go and makes life easier for comparison operations etc. DateTime is a value type so should always be used without the ^. When you use the caret then you get a boxed value that can't be serialized etc. Using DateTime DateTime DateTimeNow; DateTimeNow = DateTime::Now; […]

Read More