When creating the TimeStamp from DateTime the code takes total ticks. As stated in definition there are 10,000 ticks in a millisecond (see TicksPerMillisecond) and 10 million ticks in a second. To redis it supplied just calling ToString() method but redis expects the timestamp in miliseconds.