Adding tracker group cycle.

Adding creation date display.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@468 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-19 20:44:56 +00:00
parent 7b1e0ec085
commit 9a3d75490f
9 changed files with 52 additions and 19 deletions
+17 -1
View File
@@ -22,7 +22,6 @@
#include "config.h"
#include <ctime>
#include <sstream>
#include <iomanip>
@@ -68,4 +67,21 @@ print_hhmmss(utils::Timer t) {
return str.str();
}
std::string
print_ddmmyyyy(time_t t) {
std::tm *u = std::gmtime(&t);
if (u == NULL)
return "inv_time";
std::stringstream str;
str.fill('0');
str << std::setw(2) << u->tm_mday << '/'
<< std::setw(2) << u->tm_mon << '/'
<< std::setw(4) << (1900 + u->tm_year);
return str.str();
}
}