time.h에서
struct tm
{
int tm_sec; /* Seconds */
int tm_min; /* Minutes */
int tm_hour; /* Hour (0--23) */
int tm_mday; /* Day of month (1--31) */
int tm_mon; /* Month (0--11) */
int tm_year; /* Year (calendar year minus 1900) */
int tm_wday; /* Weekday (0--6; Sunday = 0) */
int tm_yday; /* Day of year (0--365) */ <== 원하시는 데이터.
int tm_isdst; /* 0 if daylight savings time is not in effect) */
};
구조체 tm의 tm_yday를 받고 싶은데 어떻게 진입해서 값을 받아오면 되나요?
|