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

Current Datetime


  • Please log in to reply
4 replies to this topic

#1 mohammad

mohammad

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts

Posted 05 April 2012 - 08:12 PM

Hi all, I am using "DateTime.Now" to get the current time, but the result is "01/01/2009 00:03:13". Why? Thanks, Mohammad

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 05 April 2012 - 08:20 PM

Hi Mohammad, The clock starts ticking at bootup of the Netduino. Since the Netduino doesn't have a RTC (Real-time clock) it starts at 01/01/09. You could solve this by adding an RTC circuitry.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 mohammad

mohammad

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts

Posted 05 April 2012 - 08:26 PM

Hi Mohammad,

The clock starts ticking at bootup of the Netduino. Since the Netduino doesn't have a RTC (Real-time clock) it starts at 01/01/09.
You could solve this by adding an RTC circuitry.


Thanks. I am very curious. Why the RTC circuit hasn't been already added to the Netduino Plus board? :)

#4 Gorf

Gorf

    Advanced Member

  • Members
  • PipPipPip
  • 96 posts

Posted 05 April 2012 - 09:12 PM

Wouldn't it need to have a battery for that?

#5 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 05 April 2012 - 09:36 PM

Wouldn't it need to have a battery for that?

Yes it would and that probably didn't fit budget nor physical board.

Here's a guy that added a I2C controlled RTC chip and a battery:
http://forums.netdui...on-help-needed/




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.