Index: trunk/ippMonitor/raw/ipp.php
===================================================================
--- trunk/ippMonitor/raw/ipp.php	(revision 42384)
+++ trunk/ippMonitor/raw/ipp.php	(revision 42736)
@@ -958,3 +958,29 @@
 }
 
+function getMJD() {
+    // Get the current date and time in UTC as a Unix timestamp
+    $currentTimestamp = time();
+    
+    // Convert the Unix timestamp to Julian Date (JD)
+    $jd = 2440587.5 + ($currentTimestamp / 86400);
+    
+    // Calculate the Modified Julian Date (MJD)
+    $mjd = $jd - 2400000.5;
+    $mjdDay = floor($mjd); // Get only the day part of MJD
+    
+    // Concatenate the desired string for expname
+    //$expname = "o" . $mjdDay . "%";
+    
+    // Format the current date in 'YYYY-MM-DD-HH:mm:ss' for display
+    //$currentUTC = gmdate('Y-m-d-H:i:s', $currentTimestamp);
+    
+    // Display the result
+    //echo "Current UTC: $currentUTC, MJD: $mjdDay, expname: $expname<br>";
+    
+    // Return MJD day as an integer
+    return $mjdDay;
+}
+
+
+
 ?>
