Index: /trunk/FACT++/src/Time.cc
===================================================================
--- /trunk/FACT++/src/Time.cc	(revision 11214)
+++ /trunk/FACT++/src/Time.cc	(revision 11215)
@@ -234,4 +234,10 @@
 }
 
+int Time::NightAsInt() const
+{
+    const Time tm = *this - boost::posix_time::hours(12);
+    return tm.Y()*10000 + tm.M()*100 + tm.D();
+}
+
 // --------------------------------------------------------------------------
 //
Index: /trunk/FACT++/src/Time.h
===================================================================
--- /trunk/FACT++/src/Time.h	(revision 11214)
+++ /trunk/FACT++/src/Time.h	(revision 11215)
@@ -96,4 +96,6 @@
     double UnixTime() const;
     double RootTime() const;
+
+    int NightAsInt() const;
 };
 
