MCPcopy Create free account
hub / github.com/DentonW/DevIL / iGetDateTime

Function iGetDateTime

DevIL/src-IL/src/il_targa.cpp:911–958  ·  view source on GitHub ↗

changed name to iGetDateTime on 20031221 to fix bug 830196

Source from the content-addressed store, hash-verified

909
910//changed name to iGetDateTime on 20031221 to fix bug 830196
911void iGetDateTime(ILuint *Month, ILuint *Day, ILuint *Yr, ILuint *Hr, ILuint *Min, ILuint *Sec)
912{
913#ifdef DJGPP
914 struct date day;
915 struct time curtime;
916
917 gettime(&curtime);
918 getdate(&day);
919
920 *Month = day.da_mon;
921 *Day = day.da_day;
922 *Yr = day.da_year;
923
924 *Hr = curtime.ti_hour;
925 *Min = curtime.ti_min;
926 *Sec = curtime.ti_sec;
927
928 return;
929#else
930
931#ifdef _WIN32
932 SYSTEMTIME Time;
933
934 GetSystemTime(&Time);
935
936 *Month = Time.wMonth;
937 *Day = Time.wDay;
938 *Yr = Time.wYear;
939
940 *Hr = Time.wHour;
941 *Min = Time.wMinute;
942 *Sec = Time.wSecond;
943
944 return;
945#else
946
947 *Month = 0;
948 *Day = 0;
949 *Yr = 0;
950
951 *Hr = 0;
952 *Min = 0;
953 *Sec = 0;
954
955 return;
956#endif
957#endif
958}
959
960
961#endif//IL_NO_TGA

Callers 1

iSaveTargaInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected