23 #ifdef LIBMESH_HAVE_LOCALE    39 #ifdef LIBMESH_HAVE_LOCALE    42   const std::time_put<char> & tp = std::use_facet <std::time_put<char>> (loc);
    45   time_t now = time(
nullptr);
    46   tm * tm_struct = localtime(&now);
    49   std::ostringstream date_stream;
    68   return date_stream.str();
    73   const unsigned int time_size = 40;
    74   char time_buffer[time_size];
    76   time_t now = time (
nullptr);
    77   tm * tm_struct = localtime (&now);
    85   size_t len = strftime ( time_buffer, time_size, 
"%c", tm_struct );
    88     return std::string(time_buffer);
    91       libMesh::out << 
"Error formatting time buffer, returning empty string!" << std::endl;
    92       return std::string(
"");
    95 #endif // LIBMESH_HAVE_LOCALE std::string get_timestamp()
OStreamProxy out(std::cout)