WordPress.org

Make WordPress Core

Ticket #20987: time-constants.diff

File time-constants.diff, 974 bytes (added by nbachiyski, 22 months ago)
  • wp-includes/time-constants.php

     
     1<?php 
     2/** 
     3 * Constants for expressing human-interval intervals in their 
     4 * respective number of seconds 
     5 */ 
     6define( 'MINUTE_IN_SECONDS', 60 ); 
     7define( 'HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS ); 
     8define( 'DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS ); 
     9define( 'WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS ); 
     10define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS ); 
     11define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS ); 
     12 
     13/** 
     14 * Constants for expressing human-interval intervals in their 
     15 * respective number of minutes 
     16 */ 
     17define( 'HOUR_IN_MINUTES', 60 ); 
     18define( 'DAY_IN_MINUTES', 24 * HOUR_IN_MINUTES ); 
     19define( 'WEEK_IN_MINUTES', 7 * DAY_IN_MINUTES ); 
     20define( 'MONTH_IN_MINUTES', 30 * DAY_IN_MINUTES ); 
     21define( 'YEAR_IN_MINUTES', 365 * DAY_IN_MINUTES );