As part of my current project, I have to “synchronize” time between a server and its clients. I wanted to do it by sending DateTime.Now.Ticks from the server (Windows based) to the FEZ boards (Panda II) but I get an error stating that [em]“Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.”[/em]
After checking, I have indeed a problem :
DateTime.MaxValue.Ticks = 441796895990000000 (NetMF)
DateTime.MaxValue.Ticks = 3155378975999999999 (.Net4)
DateTime.Now.Ticks = 634799638566315716 (on PC)
Both “MaxValues” are Int64, but NetMF one is 10 times less than .Net4. And of course .Net4 ticks are greater than NetMF maxvalue
I will do what I want using another method (as I don’t need much precision), but I think it’s weird. Has anyone else got this issue ?