Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small optimization in time units

  • Loading branch information...
commit 6e22261786a4355adcaec1def633de0753f48274 1 parent 85b1930
Robust Solution authored renan committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 cake/basics.php
12 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
Please sign in to comment.
Something went wrong with that request. Please try again.