Time conversion between MF and Full .Net
#1
Posted 15 May 2011 - 03:01 PM
#2
Posted 15 May 2011 - 03:32 PM
#3
Posted 15 May 2011 - 04:17 PM
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#4
Posted 15 May 2011 - 05:05 PM
Is it really completely different or has just invalid year? In .NET Micro Framework the time origin is 1/1/1601 (vs. 1/1/1 in the 'full' .NET Framework), so you'd need to adjust it:In new object is completely diffrent date and time. Can somebody tell me how to solve this problem?
DateTime microDateTime = new DateTime(ticksFromFullFramework - 504911232000000000L);
#5
Posted 15 May 2011 - 05:42 PM
#6
Posted 15 May 2011 - 06:21 PM
This solved my problem! Thank you! And others for Interest.Is it really completely different or has just invalid year? In .NET Micro Framework the time origin is 1/1/1601 (vs. 1/1/1 in the 'full' .NET Framework), so you'd need to adjust it:
DateTime microDateTime = new DateTime(ticksFromFullFramework - 504911232000000000L);
#7
Posted 15 May 2011 - 06:50 PM
It seems the documentation is incorrect, I have filled an issue on CodePlex.This solved my problem!
#8
Posted 15 May 2011 - 07:57 PM
I read the documentation... is incorrectIt seems the documentation is incorrect, I have filled an issue on CodePlex.
#9
Posted 16 May 2011 - 03:35 AM
For example, here is the SerialPort overview, that has almost on relation with the actual MF implementation.
Cheers
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users