Changeset 47


Ignore:
Timestamp:
Jan 13, 2006, 8:06:25 PM (16 years ago)
Author:
Peter Johansson
Message:

added time/date tag in output footer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r29 r47  
    88#include <iostream>
    99#include <sstream>
     10#include <time.h>
    1011
    1112namespace theplu{
     
    3031  void Node::print_footer(std::ostream& os) const
    3132  {
    32     os << "</body>\n"
     33    time_t rawtime;
     34    struct tm * timeinfo;
     35    time ( &rawtime );
     36    timeinfo = localtime ( &rawtime );
     37    os << "<p><font size=1>Generated on "
     38       << asctime (timeinfo)
     39       << "by svnstat</font></p></body>\n"
    3340       << "</html>";
    3441  }
Note: See TracChangeset for help on using the changeset viewer.