11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsGMTIMESynopsis#include struct tm * gmtime (time_t * t)DescriptionThis function converts the time pointed to by t which is in seconds since 00:00:00 on Jan 1, 1970,into a broken down time stored in a structure as defined in time.h. The structure is defined in the’Data Types’ section.Example#include #include voidmain (void){time_t clock;struct tm * tp;}time(&clock);tp = gmtime(&clock);printf("It’s %d in London\n", tp->tm_year+1900);See Alsoctime(), asctime(), time(), localtime()151

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!