Index: trunk/BNS/bnsrinex.cpp
===================================================================
--- trunk/BNS/bnsrinex.cpp	(revision 854)
+++ trunk/BNS/bnsrinex.cpp	(revision 855)
@@ -16,4 +16,5 @@
  * -----------------------------------------------------------------------*/
 
+#include <math.h>
 #include <iomanip>
 
@@ -37,5 +38,5 @@
 ////////////////////////////////////////////////////////////////////////////
 void bnsRinex::writeHeader(const QDateTime& datTim) {
-  _out << "THIS IS A DUMMY HEADER" << endl;
+  _out << "THIS IS A DUMMY CLOCK RINEX HEADER" << endl;
 }
 
@@ -47,4 +48,13 @@
   if (bnsoutf::write(GPSweek, GPSweeks, prn, xx) == success) {
 
+      QDateTime datTim = dateAndTimeFromGPSweek(GPSweek, GPSweeks);
+      double sec = fmod(GPSweeks, 60.0);
+    
+      _out << "AS " << prn.toAscii().data()
+           << datTim.toString("  yyyy MM dd hh mm").toAscii().data()
+           << setw(12) << setprecision(8) << sec << "  2  "
+           << setw(20) << setprecision(12) << xx(4) 
+           << setw(20) << setprecision(12) << 0.0 << endl;
+
     return success;
   }
Index: trunk/BNS/bnssp3.cpp
===================================================================
--- trunk/BNS/bnssp3.cpp	(revision 854)
+++ trunk/BNS/bnssp3.cpp	(revision 855)
@@ -59,6 +59,5 @@
       double sec = fmod(GPSweeks, 60.0);
     
-      _out << "*  " 
-           << datTim.toString("yyyy MM dd hh mm").toAscii().data()
+      _out << datTim.toString("*  yyyy MM dd hh mm").toAscii().data()
            << setw(12) << setprecision(8) << sec << endl; 
     }
Index: trunk/BNS/bnswindow.cpp
===================================================================
--- trunk/BNS/bnswindow.cpp	(revision 854)
+++ trunk/BNS/bnswindow.cpp	(revision 855)
@@ -159,6 +159,6 @@
   _sp3SamplSpinBox = new QSpinBox;
   _sp3SamplSpinBox->setMinimum(0);
-  _sp3SamplSpinBox->setMaximum(60);
-  _sp3SamplSpinBox->setSingleStep(5);
+  _sp3SamplSpinBox->setMaximum(900);
+  _sp3SamplSpinBox->setSingleStep(60);
   _sp3SamplSpinBox->setMaximumWidth(9*ww);
   _sp3SamplSpinBox->setValue(settings.value("sp3Sampl").toInt());
