Index: trunk/BNC/src/bnctime.cpp
===================================================================
--- trunk/BNC/src/bnctime.cpp	(revision 5755)
+++ trunk/BNC/src/bnctime.cpp	(revision 5756)
@@ -196,4 +196,19 @@
     return this->_sec - time1._sec;
   }
+}
+
+bncTime& bncTime::operator+=(double sec) {
+  _sec+=sec;
+
+  while ( _sec >= 86400 ) {
+    _sec-=86400;
+    _mjd++;
+  }
+  while ( _sec < 0 ) {
+    _sec+=86400;
+    _mjd--;
+  }
+
+  return *this;
 }
 
@@ -279,4 +294,10 @@
 // 
 //////////////////////////////////////////////////////////////////////////////
+bncTime::operator string() const {
+  return datestr() + '_' + timestr();
+}
+
+// 
+//////////////////////////////////////////////////////////////////////////////
 bncTime& bncTime::set(int year, int month, int day, 
                       int hour, int min, double sec) {
