GetLocalTime


SUBMITTED BY: Guest

DATE: Feb. 12, 2014, 6:36 p.m.

FORMAT: Text only

SIZE: 275 Bytes

HITS: 1227

  1. void GetLocalTime()
  2. {
  3. time_t current;
  4. struct tm *timeptr;
  5. time(&current);
  6. timeptr = localtime(&current);
  7. SystemTimewHour = timeptr->tm_hour;
  8. SystemTimewMinute = timeptr->tm_min;
  9. SystemTimewSecond = timeptr->tm_sec;
  10. }

comments powered by Disqus