Skip to content

Commit

Permalink
small optimization in time units
Browse files Browse the repository at this point in the history
  • Loading branch information
Robust Solution authored and renan committed Jan 20, 2010
1 parent 85b1930 commit 6e22261
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cake/basics.php
Expand Up @@ -24,12 +24,12 @@
* Basic defines for timing functions. * Basic defines for timing functions.
*/ */
define('SECOND', 1); define('SECOND', 1);
define('MINUTE', 60 * SECOND); define('MINUTE', 60);
define('HOUR', 60 * MINUTE); define('HOUR', 3600);
define('DAY', 24 * HOUR); define('DAY', 86400);
define('WEEK', 7 * DAY); define('WEEK', 604800);
define('MONTH', 30 * DAY); define('MONTH', 2592000);
define('YEAR', 365 * DAY); define('YEAR', 31536000);


/** /**
* Patch for PHP < 5.0 * Patch for PHP < 5.0
Expand Down

0 comments on commit 6e22261

Please sign in to comment.