changed: the way how plugins work
all your plugin functions can have signature either: void my_function(PluginInfo & info); or void my_function(); only the main Init should have: extern "C" void Init(PluginFunction & info); added: directory 'plugins' for plugins added: 'stats' plugin git-svn-id: svn://ttmath.org/publicrep/winix/trunk@624 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -324,6 +324,20 @@ return DateToStr(ptm);
|
||||
}
|
||||
|
||||
|
||||
const char * DateToStrWithoutHours(tm * ptm)
|
||||
{
|
||||
return DateToStr(ptm->tm_year + 1900, ptm->tm_mon+1, ptm->tm_mday);
|
||||
}
|
||||
|
||||
|
||||
const char * DateToStrWithoutHours(time_t t)
|
||||
{
|
||||
tm * ptm = std::localtime(&t);
|
||||
|
||||
return DateToStrWithoutHours(ptm);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// this format is used with cookies
|
||||
const char * DateToStrCookie(int year, int month, int day, int hour, int min, int sec)
|
||||
|
Reference in New Issue
Block a user