জয়েন লগইন

সি asctime

🌈সি asctime কি?

📋সি asctime হলো সময়কে পাঠযোগ্য স্ট্রিংয়ে রূপান্তর করার পদ্ধতি।

⚒️সি asctime সময়কে পাঠযোগ্য স্ট্রিংয়ে রূপান্তর করতে ব্যবহৃত হয়।

সি asctime সময়কে পাঠযোগ্য স্ট্রিংয়ে রূপান্তর করার উদাহরণ।

c
#include <stdio.h>
#include <time.h>

int main() {
  time_t current = time(NULL);
  struct tm *local = localtime(&current);

  printf("%s", asctime(local));

  return 0;
}