You are here:   HomeC Programming (Pratical)Write a Program for Number is Armstrong Number
by Dinesh Thakur Category: C Programming (Pratical)
		


 
#include <time.h>

  #include <stdio.h>
  int main(void)
  {
    struct tm *local;
    time_t t;
    t = time(NULL);
    local = localtime(&t);
    printf("Local time and date: %s\n", asctime(local));
    local = gmtime(&t);
    printf("UTC time and date: %s\n", asctime(local));
    return 0;
  }

C Program Print Local and UTC Time



Search Content







Advance Courses



Basic Courses



Advertise with Us