TimeStamp; IPS_LogMessage ("TestScript.ips.php", "FirstTimeStamp:" . $FirstTimeStamp); $binval = GetValueBoolean (37844); $timestamp = null; while ($binval == 0) { IPS_Sleep(500); $changes = IPS_GetSnapshotChanges($FirstTimeStamp); $changes = json_decode ($changes); $timestamp = $changes[0]->TimeStamp; IPS_LogMessage ("TestScript.ips.php", "While timestamp:" . $timestamp); $binval = GetValueBoolean (37844); } $changes = IPS_GetSnapshotChanges($FirstTimeStamp); $changes = json_decode ($changes); $timestamp = $changes[0]->TimeStamp; IPS_LogMessage ("TestScript.ips.php", "End timestamp:" . $timestamp); print_r($timestamp); ?>