C ile ay gün yıl saat bilgisini sistemden alma





#include <stdio.h>
#include <time.h>
int main()
{
    struct tm* sys;
    time_t t;
    t=time(NULL);
    sys=localtime(&t);
    printf("Zaman %.2d:%.2d\n",sys->tm_hour,sys->tm_min);
    printf("Tarih %.2d/%.2d\n",sys->tm_mday,sys->tm_mon,sys->tm_year+1900);
    printf("Current local time and date: %s",ctime(&t));
    return 0;
}

Furkan Kaan IŞIK

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 yorum: