Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Where is DateTime?


  • Please log in to reply
2 replies to this topic

#1 Spork

Spork

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 14 September 2011 - 04:03 AM

My N+ project has been going pretty well, considering that I'm a beginner to these things. But I seem to get hung up on what would usually be a trivial issues. Here's today's: I found some code in the forums for getting the current time from an NTP server. I cut and paste the code into my "Program" class and I get an "Expected class, delegate, enum, interface, or struct" error for "DateTime". I Google ".net micro framework DateTime" and I get the following: Namespace: System Assembly: mscorlib (in mscorlib.dll) I'm "using System" and "mscorlib" is referenced, but still get the error. Is this another documentation error, or am I missing something?

#2 Mike P

Mike P

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts
  • LocationAuckland, New Zealand

Posted 14 September 2011 - 04:12 AM

Have you seen this post?
http://forums.netdui...uino-date-time/

#3 Spork

Spork

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 14 September 2011 - 04:18 PM

Thanks for the pointer, Mike. Turns out I had a subtle syntax error that Visual C# decided to report as described above. Seems like this IDE sends me on more wild goose chases than others I've worked with.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.