Index: /trunk/BNC/bncapp.cpp
===================================================================
--- /trunk/BNC/bncapp.cpp	(revision 562)
+++ /trunk/BNC/bncapp.cpp	(revision 563)
@@ -238,10 +238,36 @@
   if (!_ephPath.isEmpty()) {
 
-    QDate date = QDate::currentDate();
+    QDateTime datTim = QDateTime::currentDateTime();
 
     QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_";
-    QString ephFileNameGPS = _ephPath + hlp +
-          QString("%1").arg(date.dayOfYear(), 3, 10, QChar('0')) +
-                            date.toString("0.yyN");
+    QString ephFileNameGPS = _ephPath + hlp + 
+               QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'));
+
+    QString hlpStr;
+    QString intStr = settings.value("ephIntr").toString();
+    if      (intStr == "1 day") {
+      hlpStr = "0";
+    }
+    else if (intStr == "1 hour") {
+      char ch = 'A' + datTim.time().hour();
+      hlpStr = ch;
+    }
+    else {
+      char ch = 'A' + datTim.time().hour();
+      hlpStr = ch;
+      if      (datTim.time().minute() < 15) {
+        hlpStr += "00";
+      }
+      else if (datTim.time().minute() < 30) {
+        hlpStr += "15";
+      }
+      else if (datTim.time().minute() < 45) {
+        hlpStr += "30";
+      }
+      else {
+        hlpStr += "45";
+      }
+    }
+    ephFileNameGPS += hlpStr + datTim.toString(".yyN");
 
     if (_ephFileNameGPS == ephFileNameGPS) {
@@ -274,6 +300,6 @@
     else if (_rinexVers == 2) {
       QString ephFileNameGlonass = _ephPath + "GLO_" +
-          QString("%1").arg(date.dayOfYear(), 3, 10, QChar('0')) +
-                            date.toString("0.yyN");
+          QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
+          hlpStr + datTim.toString(".yyN");
 
       delete _ephStreamGlonass;
Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 562)
+++ /trunk/BNC/bncwindow.cpp	(revision 563)
@@ -179,5 +179,5 @@
   _ephIntrComboBox->setMaximumWidth(9*ww);
   _ephIntrComboBox->setEditable(false);
-  _ephIntrComboBox->addItems(QString("15 min,30 min,1 hour,1 day").split(","));
+  _ephIntrComboBox->addItems(QString("15 min,1 hour,1 day").split(","));
   int jj = _ephIntrComboBox->findText(settings.value("ephIntr").toString());
   if (jj != -1) {
