Main Site Documentation

Date and Time in RLP


#1

Hello,
how do you get the date and time utc in native code?
I tried to include <time.h> in my class but at make time I get the following error:
… / Reent / timesr.c: 60 undefined reference to ‘_times’

thanks


#2

Which board?


#3

It’s a Fez Cobra II (G120) !!
thanks


#4

You have two options:

  1. Pass Date/Time from NetMF to RLP when calling a method
  2. Read RTC from RTC registers (LPC_RTC struct in lpc 1788 header file)