MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / ConvertFiletime

Method ConvertFiletime

src/FTPClientWrapperSSL.cpp:426–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426FILETIME FTPClientWrapperSSL::ConvertFiletime(int day, int month, int year, int hour, int minute) {
427 FILETIME ft;
428 SYSTEMTIME st{};
429 st.wYear = year;
430 st.wMonth = month;
431 st.wDayOfWeek = 0; //ignored
432 st.wDay = day;
433 st.wHour = hour;
434 st.wMinute = minute;
435 st.wSecond = 0;
436 st.wMilliseconds = 0;
437
438 SystemTimeToFileTime(&st, &ft);
439
440 return ft;
441}
442
443/////////////////////////////////////////////////////////////////////////////
444/////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected