24 lines
359 B
C++
24 lines
359 B
C++
// Copyright (c) 2011 Bryan Schumaker.
|
|
#include <library.h>
|
|
#include <track.h>
|
|
|
|
#include <sstream>
|
|
using namespace std;
|
|
|
|
namespace libsaria
|
|
{
|
|
|
|
string Track::get_last_played()
|
|
{
|
|
stringstream s;
|
|
|
|
if (count == 0)
|
|
return "Never";
|
|
s << last_month << " / ";
|
|
s << last_day << " / ";
|
|
s << last_year;
|
|
return s.str();
|
|
}
|
|
|
|
} /* Namespace: libsaria */
|