Permalink
Browse files

small optimization in time units

  • Loading branch information...
1 parent 85b1930 commit 6e22261786a4355adcaec1def633de0753f48274 Robust Solution committed with renan Jan 20, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 cake/basics.php
View
@@ -24,12 +24,12 @@
* Basic defines for timing functions.
*/
define('SECOND', 1);
- define('MINUTE', 60 * SECOND);
- define('HOUR', 60 * MINUTE);
- define('DAY', 24 * HOUR);
- define('WEEK', 7 * DAY);
- define('MONTH', 30 * DAY);
- define('YEAR', 365 * DAY);
+ define('MINUTE', 60);
+ define('HOUR', 3600);
+ define('DAY', 86400);
+ define('WEEK', 604800);
+ define('MONTH', 2592000);
+ define('YEAR', 31536000);
/**
* Patch for PHP < 5.0

0 comments on commit 6e22261

Please sign in to comment.