Index: trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rinex/rnxobsfile.cpp	(revision 3865)
+++ trunk/BNC/rinex/rnxobsfile.cpp	(revision 3866)
@@ -640,4 +640,15 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_rnxObsFile::writeEpoch(const t_rnxEpo* epo) {
+  if (version() < 3.0) {
+    return writeEpochV2(epo);
+  }
+  else {
+    return writeEpochV3(epo);
+  }
+}
+
+// Write Data Epoch (RINEX Version 2)
+////////////////////////////////////////////////////////////////////////////
+void t_rnxObsFile::writeEpochV2(const t_rnxEpo* epo) {
 
   unsigned year, month, day, hour, min;
@@ -685,2 +696,14 @@
   }
 }
+
+// Write Data Epoch (RINEX Version 3)
+////////////////////////////////////////////////////////////////////////////
+void t_rnxObsFile::writeEpochV3(const t_rnxEpo* epo) {
+
+  unsigned year, month, day, hour, min;
+  double sec;
+  epo->tt.civil_date(year, month, day);
+  epo->tt.civil_time(hour, min, sec);
+
+
+}
Index: trunk/BNC/rinex/rnxobsfile.h
===================================================================
--- trunk/BNC/rinex/rnxobsfile.h	(revision 3865)
+++ trunk/BNC/rinex/rnxobsfile.h	(revision 3866)
@@ -127,4 +127,6 @@
 
  private:
+  void writeEpochV2(const t_rnxEpo* epo);
+  void writeEpochV3(const t_rnxEpo* epo);
   const t_rnxEpo* nextEpochV2();
   const t_rnxEpo* nextEpochV3();
