103 | | define( 'MINUTE_IN_SECONDS', 60 ); |
104 | | define( 'HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS ); |
105 | | define( 'DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS ); |
106 | | define( 'WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS ); |
107 | | define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS ); |
108 | | define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS ); |
| 103 | if ( ! defined( 'MINUTE_IN_SECONDS' ) ) { |
| 104 | define( 'MINUTE_IN_SECONDS', 60 ); |
| 105 | } |
| 106 | if ( ! defined( 'HOUR_IN_SECONDS' ) ) { |
| 107 | define( 'HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS ); |
| 108 | } |
| 109 | if ( ! defined( 'DAY_IN_SECONDS' ) ) { |
| 110 | define( 'DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS ); |
| 111 | } |
| 112 | if ( ! defined( 'WEEK_IN_SECONDS' ) ) { |
| 113 | define( 'WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS ); |
| 114 | } |
| 115 | if ( ! defined( 'MONTH_IN_SECONDS' ) ) { |
| 116 | define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS ); |
| 117 | } |
| 118 | if ( ! defined( 'YEAR_IN_SECONDS' ) ) { |
| 119 | define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS ); |
| 120 | } |
| 122 | |
| 123 | /**#@+ |
| 124 | * Constants for expressing human-readable data sizes |
| 125 | * in their respective number of bytes. |
| 126 | * |
| 127 | * @since 4.4 |
| 128 | */ |
| 129 | if ( ! defined( 'KB_IN_BYTES' ) ) { |
| 130 | define( 'KB_IN_BYTES', 1024 ); |
| 131 | } |
| 132 | if ( ! defined( 'MB_IN_BYTES' ) ) { |
| 133 | define( 'MB_IN_BYTES', 1024 * KB_IN_BYTES ); |
| 134 | } |
| 135 | if ( ! defined( 'GB_IN_BYTES' ) ) { |
| 136 | define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES ); |
| 137 | } |
| 138 | if ( ! defined( 'TB_IN_BYTES' ) ) { |
| 139 | define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES ); |
| 140 | } |
| 141 | if ( ! defined( 'PB_IN_BYTES' ) ) { |
| 142 | define( 'PB_IN_BYTES', 1024 * TB_IN_BYTES ); |
| 143 | } |
| 144 | /**#@-*/ |