Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8375)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8379)
@@ -19,4 +19,11 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2007/03/17 Thomas Bretz
+
+   * mbase/MTime.[h,cc]:
+     - added new memeber function to set unix times
+
+
+
  2007/03/09 Thomas Bretz
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 8375)
+++ trunk/MagicSoft/Mars/NEWS	(revision 8379)
@@ -26,4 +26,8 @@
    - general: The changes to the interpretation of phrases lead to
      a problem with the access of MHMatrix objects (eg. "M[0]")... fixed.
+
+   - general: Added example files how you can create your own calendar
+      (eg. as christmas present) with Mars. Just run
+           root macros/tutorials/calendar.C
 
    - general: Added a possibility to display grouped data in the plotdb.C
@@ -46,4 +50,6 @@
      extraction end is changed accordingly. If no proper extraction range
      can be set (hi-gain too much to the left) an error is raised.
+
+   - callisto: New swapped pixels have been found and corrected
 
    - callisto: Redone the signal extraction this includes:
Index: trunk/MagicSoft/Mars/mbase/MTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTime.cc	(revision 8375)
+++ trunk/MagicSoft/Mars/mbase/MTime.cc	(revision 8379)
@@ -262,4 +262,13 @@
 {
     SetMjd(time*1000/kDay+49718);
+}
+
+// --------------------------------------------------------------------------
+//
+// Set unix time (seconds since epoche 1970-01-01)
+//
+void MTime::SetUnixTime(Long_t tm)
+{
+    SetMjd(1000.*tm/kDay+40587);
 }
 
Index: trunk/MagicSoft/Mars/mbase/MTime.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTime.h	(revision 8375)
+++ trunk/MagicSoft/Mars/mbase/MTime.h	(revision 8379)
@@ -98,4 +98,5 @@
     void     SetMjd(Double_t m);
     void     SetAxisTime(Double_t time);
+    void     SetUnixTime(Long_t time);
     void     SetEaster(Short_t year=0);
 
