remove filesystem_selector

This commit is contained in:
Jinhao
2016-06-27 00:35:04 +08:00
parent c65247b413
commit 1845b41019
6 changed files with 91 additions and 114 deletions

View File

@@ -13,6 +13,9 @@
#include <nana/filesystem/filesystem_ext.hpp>
#include <vector>
#include <sstream>
#include <iomanip> //put_time
#if defined(NANA_WINDOWS)
#include <windows.h>
@@ -102,7 +105,13 @@ namespace nana
if (ftime == ((fs::file_time_type::min)())) return{};
std::time_t cftime = decltype(ftime)::clock::to_time_t(ftime);
//std::time_t cftime = decltype(ftime)::clock::to_time_t(ftime);
//A workaround for VC2013
using time_point = decltype(ftime);
auto cftime = time_point::clock::to_time_t(ftime);
std::stringstream tm;
tm << std::put_time(std::localtime(&cftime), "%Y-%m-%d, %H:%M:%S");
return tm.str();