개발메모(형식에 매이지 않는 짤막한 개발 낙서)

글 수 174

localtime의 반환값의 구조체 멤버

조회 수 3022 추천 수 0 2005.03.12 22:18:53
허창원 *.19.44.230
매번 찾게 되니....

struct tm *localtime(
   const time_t *timer
);
struct tm *_localtime64(
   const __time64_t *timer
);

Return a pointer to the structure result. If the value in timer represents a date before midnight, January 1, 1970, return NULL.

_localtime64, which uses the __time64_t structure, allows dates to be expressed up through 23:59:59, December 31, 3000, coordinated universal time (UTC), whereas localtime represents dates through 19:14:07 January 18, 2038, UTC.

The fields of the structure type tm store the following values, each of which is an int:

tm_sec
Seconds after minute (0 – 59).
tm_min
Minutes after hour (0 – 59).
tm_hour
Hours after midnight (0 – 23).
tm_mday
Day of month (1 – 31).
tm_mon
Month (0 – 11; January = 0).
tm_year
Year (current year minus 1900).
tm_wday
Day of week (0 – 6; Sunday = 0).
tm_yday
Day of year (0 – 365; January 1 = 0).
tm_isdst
Positive value if daylight saving time is in effect; 0 if daylight saving time is not in effect; negative value if status of daylight saving time is unknown. If the TZ environment variable is set, the C run-time library assumes rules appropriate to the United States for implementing the calculation of daylight-saving time (DST).
List of Articles
번호 제목 글쓴이 날짜 조회 수
54 MAC Address, IP 주소 얻어오기 허창원 2005-06-08 5891
53 고정폭 문자열 필드 데이터를 효율적으로 저장하기 허창원 2005-06-04 2972
52 컨트롤 초기화 함수들 허창원 2005-06-03 2840
51 텍스트 박스(Text Box)만으로된 Panel의 크기 조절 Callback file 허창원 2005-06-03 2896
50 Ring 컨트롤에 값을 Set/Get 할 때 file 허창원 2005-05-27 2806
49 테이블(Table)의 한 셀에서 엔터를 치면... 허창원 2005-05-26 3741
48 CVI 프로그램에서 탐색기를 실행시켜 특정 폴더를 열때 file 허창원 2005-04-20 10590
47 32비트 환경에서 시간함수의 표현가능 년도는 대략 2036~2038년까지 허창원 2005-04-13 3495
46 CVI Runtime Engine을 설치하는 대신 복사할 파일들 허창원 2005-04-08 5520
45 Control Mode에서 Normal은 EVENT_COMMIT은 안생김 허창원 2005-03-24 2996
44 테이블의 가로 스크롤바가 중간에 걸쳐져 있을때 허창원 2005-03-23 3099
43 듀얼 모니터 시스템에서 Primary 모니터를 Default로 지정 허창원 2005-03-23 4051
42 Windows Shutdown하는 방법 김충영 2005-03-14 3268
» localtime의 반환값의 구조체 멤버 허창원 2005-03-12 3022
40 Window Frame 두께, Title bar 두께, 가상스크린 크기(Win32) 허창원 2005-03-01 3973
39 Panel을 화면의 중앙에 위치시키기 허창원 2005-03-01 3166
38 Panel의 기본 색깔 file [1] 허창원 2005-02-22 2923
37 List Item을 위로 혹은 아래로 file 허창원 2005-02-22 2880
36 특수문자 허창원 2005-02-14 2850
35 텍스트 파일로 저장하기 위한 대화상자띄우는 예 허창원 2005-02-08 2992