NO

Author Topic: new Version 6.5 still does not allow localtime to work on pda  (Read 2634 times)

gromit

  • Guest
new Version 6.5 still does not allow localtime to work on pda
« on: December 06, 2010, 11:43:38 pm »
localtime and gmtime both show error of

Missing prototype for 'localtime'.


#include <time.h>
time_t now;
  struct tm *tm_now;
   now = time ( NULL );
  tm_now = localtime ( &now );

I Did think this was supposed to work in the latest version but perhaps not on PDA

Any Tips Gratefully recieved
gromit :o

ml

  • Guest
Re: new Version 6.5 still does not allow localtime to work on pda
« Reply #1 on: December 09, 2010, 08:29:06 pm »
try

Code: [Select]
SYSTEMTIME SystemTime;
GetLocalTime(&SystemTime);

ml