336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
개념 :
1. 원형 : char* asctime(const struct tm *timeptr)
소스코드 :
#include<stdio.h>
#include<time.h>
int main(void)
{
time_t now;
struct tm t;
now = time(NULL);
t = *localtime(&now);
puts(asctime(&t));
system("pause");
return 0;
}
결과:
'Programing - C > C Basic grammar ' 카테고리의 다른 글
133 삼각 함수 sin 값 구하기(sin) (0) | 2018.05.13 |
---|---|
132 날짜 및 시간을 형식화( strftime ) (0) | 2018.05.13 |
130 날짜 및 시간 차이 (difftime) (0) | 2018.05.13 |
129 날짜 및 시간을 더하거나 빼기( mktime ) (0) | 2018.05.13 |
128 날짜 및 시간을 문자열로 변환(ctime) (0) | 2018.02.18 |