-// ANNA - Anna is Not Nothingness Anymore //
-// //
-// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
-// //
-// See project site at http://redmine.teslayout.com/projects/anna-suite //
-// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
-
-
-#include <stdio.h>
-
-#include <anna/dbms/TimeStamp.hpp>
-
-#include <anna/config/defines.hpp>
-#include <anna/core/functions.hpp>
-
-using namespace std;
-using namespace anna;
-using namespace anna::dbms;
-
-const char* dbms::TimeStamp::getCStringValue() const
-throw() {
- const char* format;
-
- if((format = a_format) == NULL)
- format = "%d/%m/%Y %H:%M:%S.%%d";
-
- TimeStamp* _this = const_cast <TimeStamp*>(this);
- char* result = _this->a_buffer;
-
- if(strftime(result, MaxDateSize, format, &a_value) == 0)
- return NULL;
-
- if(anna_strstr(result, "%d")) {
- anna_strcpy(_this->a_anotherBuffer, result);
- sprintf(result, _this->a_anotherBuffer, a_fractionalSecond);
- }
-
- return result;
-}