User:Calthephenom/Time

From WiiBrew
Jump to navigation Jump to search

Here Is A Useful Little Snippet I Jotted Up One Sunday. it prints the Wii's Local Time To The Screen

#include <time.h>
 
int clocker ()
{
        char *date;
        
        time_t timer;

        timer=time(NULL);
        
        date = asctime(localtime(&timer));

        printf("\033[22;36m%s", date);
        
        getchar();
		
        return 0;
}