28 lines
597 B
PHP
28 lines
597 B
PHP
<?php
|
|
// File name: curtime.inc.php
|
|
// Description: PHP current time constants
|
|
// Date: 2007-08-08
|
|
// Author: imacat <imacat@pristine.com.tw>
|
|
// Copyright: Copyright (C) 2007 Pristine Communications
|
|
|
|
// Set the include path
|
|
if (!defined("INCPATH_SET")) {
|
|
require_once dirname(__FILE__) . "/incpath.inc.php";
|
|
}
|
|
// Referenced subroutines
|
|
require_once "monica/hires.inc.php";
|
|
|
|
// Settings
|
|
if (!defined("NOW")) {
|
|
define("NOW", time());
|
|
}
|
|
if (!defined("TODAY")) {
|
|
define("TODAY", date("Y-m-d"));
|
|
}
|
|
// Log the start time
|
|
if (!defined("T_START")) {
|
|
define("T_START", time_hires());
|
|
}
|
|
|
|
?>
|