Index: trunk/MagicSoft/Cosy/videodev/Writer.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 1810)
+++ trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 1816)
@@ -14,10 +14,18 @@
                  struct timeval *date)
 {
-    cout << "Writing PNG '" << fname << "'" << endl;
+    TString name = fname;
+
+    Timer t(date);
+
+    name += "_";
+    name += t.GetMjd()-52000;
+    name += ".png";
+
+    cout << "Writing PNG '" << name << "'" << endl;
 
     //
     // open file
     //
-    FILE *fd = fopen(fname, "w");
+    FILE *fd = fopen(name, "w");
     if (!fd)
     {
@@ -113,12 +121,20 @@
 }
 
-void Writer::Ppm(const char *fname, const byte *img)
+void Writer::Ppm(const char *fname, const byte *img, struct timeval *date)
 {
-    cout << "Writing PPM '" << fname << "'" << endl;
+    TString name = fname;
+
+    Timer t(date);
+
+    name += "_";
+    name += t.GetMjd()-52000;
+    name += ".ppm";
+
+    cout << "Writing PPM '" << name << "'" << endl;
 
     //
     // open file for writing
     //
-    ofstream fout(fname);
+    ofstream fout(name);
     if (!fout)
     {
Index: trunk/MagicSoft/Cosy/videodev/Writer.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Writer.h	(revision 1810)
+++ trunk/MagicSoft/Cosy/videodev/Writer.h	(revision 1816)
@@ -17,5 +17,5 @@
 public:
 
-    static void Ppm(const char *fname, const byte *img);
+    static void Ppm(const char *fname, const byte *img, struct timeval *date);
     static void Png(const char *fname, const byte *buf, struct timeval *date);
 
