'120000') { $TIME_FORMAT=str_replace('%A', i18n::translate('P.M.'), $TIME_FORMAT); $TIME_FORMAT=str_replace('%a', i18n::translate('p.m.'), $TIME_FORMAT); } else { $TIME_FORMAT=str_replace('%A', i18n::translate('A.M.'), $TIME_FORMAT); $TIME_FORMAT=str_replace('%a', i18n::translate('a.m.'), $TIME_FORMAT); } } */ return PrintReady(timestamp_to_gedcom_date($time)->Display(false, $DATE_FORMAT). ' - '.date(str_replace('%', '', $TIME_FORMAT), $time).''); } //////////////////////////////////////////////////////////////////////////////// // Get the current julian day on the server //////////////////////////////////////////////////////////////////////////////// function server_jd() { return timestamp_to_jd(time()); } //////////////////////////////////////////////////////////////////////////////// // Get the current julian day on the client //////////////////////////////////////////////////////////////////////////////// function client_jd() { return timestamp_to_jd(client_time()); } //////////////////////////////////////////////////////////////////////////////// // Convert a unix-style timestamp into a julian-day //////////////////////////////////////////////////////////////////////////////// function timestamp_to_jd($time) { return timestamp_to_gedcom_date($time)->JD(); } //////////////////////////////////////////////////////////////////////////////// // Convert a unix-style timestamp into a GedcomDate object //////////////////////////////////////////////////////////////////////////////// function timestamp_to_gedcom_date($time) { return new GedcomDate(strtoupper(date('j M Y', $time))); } //////////////////////////////////////////////////////////////////////////////// // Get the current timestamp of the client, not the server //////////////////////////////////////////////////////////////////////////////// function client_time() { if (isset($_SESSION["timediff"])) { return time()-$_SESSION["timediff"]; } else { return time(); } } ?>