| 1 |
<?php |
| 2 |
|
| 3 |
// Start of date v.5.6.0 |
| 4 |
|
| 5 |
interface DateTimeInterface { |
| 6 |
|
| 7 |
/** |
| 8 |
* @param format |
| 9 |
*/ |
| 10 |
abstract public function format ($format) ; |
| 11 |
|
| 12 |
abstract public function getTimezone () ; |
| 13 |
|
| 14 |
abstract public function getOffset () ; |
| 15 |
|
| 16 |
abstract public function getTimestamp () ; |
| 17 |
|
| 18 |
/** |
| 19 |
* @param object |
| 20 |
* @param absolute[optional] |
| 21 |
*/ |
| 22 |
abstract public function diff ($object, $absolute) ; |
| 23 |
|
| 24 |
abstract public function __wakeup () ; |
| 25 |
|
| 26 |
} |
| 27 |
|
| 28 |
class DateTime implements DateTimeInterface { |
| 29 |
const ATOM = "Y-m-d\TH:i:sP"; |
| 30 |
const COOKIE = "l, d-M-Y H:i:s T"; |
| 31 |
const ISO8601 = "Y-m-d\TH:i:sO"; |
| 32 |
const RFC822 = "D, d M y H:i:s O"; |
| 33 |
const RFC850 = "l, d-M-y H:i:s T"; |
| 34 |
const RFC1036 = "D, d M y H:i:s O"; |
| 35 |
const RFC1123 = "D, d M Y H:i:s O"; |
| 36 |
const RFC2822 = "D, d M Y H:i:s O"; |
| 37 |
const RFC3339 = "Y-m-d\TH:i:sP"; |
| 38 |
const RSS = "D, d M Y H:i:s O"; |
| 39 |
const W3C = "Y-m-d\TH:i:sP"; |
| 40 |
|
| 41 |
|
| 42 |
/** |
| 43 |
* Returns new DateTime object |
| 44 |
* @link http://www.php.net/manual/en/datetime.construct.php |
| 45 |
* @param time[optional] |
| 46 |
* @param object[optional] |
| 47 |
*/ |
| 48 |
public function __construct ($time, $object) {} |
| 49 |
|
| 50 |
/** |
| 51 |
* The __wakeup handler |
| 52 |
* @link http://www.php.net/manual/en/datetime.wakeup.php |
| 53 |
*/ |
| 54 |
public function __wakeup () {} |
| 55 |
|
| 56 |
/** |
| 57 |
* The __set_state handler |
| 58 |
* @link http://www.php.net/manual/en/datetime.set-state.php |
| 59 |
*/ |
| 60 |
public static function __set_state () {} |
| 61 |
|
| 62 |
/** |
| 63 |
* Returns new DateTime object formatted according to the specified format |
| 64 |
* @link http://www.php.net/manual/en/datetime.createfromformat.php |
| 65 |
* @param format |
| 66 |
* @param time |
| 67 |
* @param object[optional] |
| 68 |
*/ |
| 69 |
public static function createFromFormat ($format, $time, $object) {} |
| 70 |
|
| 71 |
/** |
| 72 |
* Returns the warnings and errors |
| 73 |
* @link http://www.php.net/manual/en/datetime.getlasterrors.php |
| 74 |
*/ |
| 75 |
public static function getLastErrors () {} |
| 76 |
|
| 77 |
/** |
| 78 |
* Returns date formatted according to given format |
| 79 |
* @link http://www.php.net/manual/en/datetime.format.php |
| 80 |
* @param format |
| 81 |
*/ |
| 82 |
public function format ($format) {} |
| 83 |
|
| 84 |
/** |
| 85 |
* Alters the timestamp |
| 86 |
* @link http://www.php.net/manual/en/datetime.modify.php |
| 87 |
* @param modify |
| 88 |
*/ |
| 89 |
public function modify ($modify) {} |
| 90 |
|
| 91 |
/** |
| 92 |
* Adds an amount of days, months, years, hours, minutes and seconds to a |
| 93 |
DateTime object |
| 94 |
* @link http://www.php.net/manual/en/datetime.add.php |
| 95 |
* @param interval |
| 96 |
*/ |
| 97 |
public function add ($interval) {} |
| 98 |
|
| 99 |
/** |
| 100 |
* Subtracts an amount of days, months, years, hours, minutes and seconds from |
| 101 |
a DateTime object |
| 102 |
* @link http://www.php.net/manual/en/datetime.sub.php |
| 103 |
* @param interval |
| 104 |
*/ |
| 105 |
public function sub ($interval) {} |
| 106 |
|
| 107 |
/** |
| 108 |
* Return time zone relative to given DateTime |
| 109 |
* @link http://www.php.net/manual/en/datetime.gettimezone.php |
| 110 |
*/ |
| 111 |
public function getTimezone () {} |
| 112 |
|
| 113 |
/** |
| 114 |
* Sets the time zone for the DateTime object |
| 115 |
* @link http://www.php.net/manual/en/datetime.settimezone.php |
| 116 |
* @param timezone |
| 117 |
*/ |
| 118 |
public function setTimezone ($timezone) {} |
| 119 |
|
| 120 |
/** |
| 121 |
* Returns the timezone offset |
| 122 |
* @link http://www.php.net/manual/en/datetime.getoffset.php |
| 123 |
*/ |
| 124 |
public function getOffset () {} |
| 125 |
|
| 126 |
/** |
| 127 |
* Sets the time |
| 128 |
* @link http://www.php.net/manual/en/datetime.settime.php |
| 129 |
* @param hour |
| 130 |
* @param minute |
| 131 |
* @param second[optional] |
| 132 |
*/ |
| 133 |
public function setTime ($hour, $minute, $second) {} |
| 134 |
|
| 135 |
/** |
| 136 |
* Sets the date |
| 137 |
* @link http://www.php.net/manual/en/datetime.setdate.php |
| 138 |
* @param year |
| 139 |
* @param month |
| 140 |
* @param day |
| 141 |
*/ |
| 142 |
public function setDate ($year, $month, $day) {} |
| 143 |
|
| 144 |
/** |
| 145 |
* Sets the ISO date |
| 146 |
* @link http://www.php.net/manual/en/datetime.setisodate.php |
| 147 |
* @param year |
| 148 |
* @param week |
| 149 |
* @param day[optional] |
| 150 |
*/ |
| 151 |
public function setISODate ($year, $week, $day) {} |
| 152 |
|
| 153 |
/** |
| 154 |
* Sets the date and time based on an Unix timestamp |
| 155 |
* @link http://www.php.net/manual/en/datetime.settimestamp.php |
| 156 |
* @param unixtimestamp |
| 157 |
*/ |
| 158 |
public function setTimestamp ($unixtimestamp) {} |
| 159 |
|
| 160 |
/** |
| 161 |
* Gets the Unix timestamp |
| 162 |
* @link http://www.php.net/manual/en/datetime.gettimestamp.php |
| 163 |
*/ |
| 164 |
public function getTimestamp () {} |
| 165 |
|
| 166 |
/** |
| 167 |
* Returns the difference between two DateTime objects |
| 168 |
* @link http://www.php.net/manual/en/datetime.diff.php |
| 169 |
* @param object |
| 170 |
* @param absolute[optional] |
| 171 |
*/ |
| 172 |
public function diff ($object, $absolute) {} |
| 173 |
|
| 174 |
} |
| 175 |
|
| 176 |
class DateTimeImmutable implements DateTimeInterface { |
| 177 |
|
| 178 |
/** |
| 179 |
* Returns new DateTimeImmutable object |
| 180 |
* @link http://www.php.net/manual/en/datetimeimmutable.construct.php |
| 181 |
* @param time[optional] |
| 182 |
* @param object[optional] |
| 183 |
*/ |
| 184 |
public function __construct ($time, $object) {} |
| 185 |
|
| 186 |
public function __wakeup () {} |
| 187 |
|
| 188 |
/** |
| 189 |
* The __set_state handler |
| 190 |
* @link http://www.php.net/manual/en/datetimeimmutable.set-state.php |
| 191 |
*/ |
| 192 |
public static function __set_state () {} |
| 193 |
|
| 194 |
/** |
| 195 |
* Returns new DateTimeImmutable object formatted according to the specified format |
| 196 |
* @link http://www.php.net/manual/en/datetimeimmutable.createfromformat.php |
| 197 |
* @param format |
| 198 |
* @param time |
| 199 |
* @param object[optional] |
| 200 |
*/ |
| 201 |
public static function createFromFormat ($format, $time, $object) {} |
| 202 |
|
| 203 |
/** |
| 204 |
* Returns the warnings and errors |
| 205 |
* @link http://www.php.net/manual/en/datetimeimmutable.getlasterrors.php |
| 206 |
*/ |
| 207 |
public static function getLastErrors () {} |
| 208 |
|
| 209 |
/** |
| 210 |
* @param format |
| 211 |
*/ |
| 212 |
public function format ($format) {} |
| 213 |
|
| 214 |
public function getTimezone () {} |
| 215 |
|
| 216 |
public function getOffset () {} |
| 217 |
|
| 218 |
public function getTimestamp () {} |
| 219 |
|
| 220 |
/** |
| 221 |
* @param object |
| 222 |
* @param absolute[optional] |
| 223 |
*/ |
| 224 |
public function diff ($object, $absolute) {} |
| 225 |
|
| 226 |
/** |
| 227 |
* Creates a new object with modified timestamp |
| 228 |
* @link http://www.php.net/manual/en/datetimeimmutable.modify.php |
| 229 |
* @param modify |
| 230 |
*/ |
| 231 |
public function modify ($modify) {} |
| 232 |
|
| 233 |
/** |
| 234 |
* Adds an amount of days, months, years, hours, minutes and seconds |
| 235 |
* @link http://www.php.net/manual/en/datetimeimmutable.add.php |
| 236 |
* @param interval |
| 237 |
*/ |
| 238 |
public function add ($interval) {} |
| 239 |
|
| 240 |
/** |
| 241 |
* Subtracts an amount of days, months, years, hours, minutes and seconds |
| 242 |
* @link http://www.php.net/manual/en/datetimeimmutable.sub.php |
| 243 |
* @param interval |
| 244 |
*/ |
| 245 |
public function sub ($interval) {} |
| 246 |
|
| 247 |
/** |
| 248 |
* Sets the time zone |
| 249 |
* @link http://www.php.net/manual/en/datetimeimmutable.settimezone.php |
| 250 |
* @param timezone |
| 251 |
*/ |
| 252 |
public function setTimezone ($timezone) {} |
| 253 |
|
| 254 |
/** |
| 255 |
* Sets the time |
| 256 |
* @link http://www.php.net/manual/en/datetimeimmutable.settime.php |
| 257 |
* @param hour |
| 258 |
* @param minute |
| 259 |
* @param second[optional] |
| 260 |
*/ |
| 261 |
public function setTime ($hour, $minute, $second) {} |
| 262 |
|
| 263 |
/** |
| 264 |
* Sets the date |
| 265 |
* @link http://www.php.net/manual/en/datetimeimmutable.setdate.php |
| 266 |
* @param year |
| 267 |
* @param month |
| 268 |
* @param day |
| 269 |
*/ |
| 270 |
public function setDate ($year, $month, $day) {} |
| 271 |
|
| 272 |
/** |
| 273 |
* Sets the ISO date |
| 274 |
* @link http://www.php.net/manual/en/datetimeimmutable.setisodate.php |
| 275 |
* @param year |
| 276 |
* @param week |
| 277 |
* @param day[optional] |
| 278 |
*/ |
| 279 |
public function setISODate ($year, $week, $day) {} |
| 280 |
|
| 281 |
/** |
| 282 |
* Sets the date and time based on an Unix timestamp |
| 283 |
* @link http://www.php.net/manual/en/datetimeimmutable.settimestamp.php |
| 284 |
* @param unixtimestamp |
| 285 |
*/ |
| 286 |
public function setTimestamp ($unixtimestamp) {} |
| 287 |
|
| 288 |
/** |
| 289 |
* Returns new DateTimeImmutable object encapsulating the given DateTime object |
| 290 |
* @link http://www.php.net/manual/en/datetimeimmutable.createfrommutable.php |
| 291 |
* @param DateTime |
| 292 |
*/ |
| 293 |
public static function createFromMutable ($DateTime) {} |
| 294 |
|
| 295 |
} |
| 296 |
|
| 297 |
class DateTimeZone { |
| 298 |
const AFRICA = 1; |
| 299 |
const AMERICA = 2; |
| 300 |
const ANTARCTICA = 4; |
| 301 |
const ARCTIC = 8; |
| 302 |
const ASIA = 16; |
| 303 |
const ATLANTIC = 32; |
| 304 |
const AUSTRALIA = 64; |
| 305 |
const EUROPE = 128; |
| 306 |
const INDIAN = 256; |
| 307 |
const PACIFIC = 512; |
| 308 |
const UTC = 1024; |
| 309 |
const ALL = 2047; |
| 310 |
const ALL_WITH_BC = 4095; |
| 311 |
const PER_COUNTRY = 4096; |
| 312 |
|
| 313 |
|
| 314 |
/** |
| 315 |
* Creates new DateTimeZone object |
| 316 |
* @link http://www.php.net/manual/en/datetimezone.construct.php |
| 317 |
* @param timezone |
| 318 |
*/ |
| 319 |
public function __construct ($timezone) {} |
| 320 |
|
| 321 |
public function __wakeup () {} |
| 322 |
|
| 323 |
public static function __set_state () {} |
| 324 |
|
| 325 |
/** |
| 326 |
* Returns the name of the timezone |
| 327 |
* @link http://www.php.net/manual/en/datetimezone.getname.php |
| 328 |
*/ |
| 329 |
public function getName () {} |
| 330 |
|
| 331 |
/** |
| 332 |
* Returns the timezone offset from GMT |
| 333 |
* @link http://www.php.net/manual/en/datetimezone.getoffset.php |
| 334 |
* @param datetime |
| 335 |
*/ |
| 336 |
public function getOffset ($datetime) {} |
| 337 |
|
| 338 |
/** |
| 339 |
* Returns all transitions for the timezone |
| 340 |
* @link http://www.php.net/manual/en/datetimezone.gettransitions.php |
| 341 |
* @param timestamp_begin |
| 342 |
* @param timestamp_end |
| 343 |
*/ |
| 344 |
public function getTransitions ($timestamp_begin, $timestamp_end) {} |
| 345 |
|
| 346 |
/** |
| 347 |
* Returns location information for a timezone |
| 348 |
* @link http://www.php.net/manual/en/datetimezone.getlocation.php |
| 349 |
*/ |
| 350 |
public function getLocation () {} |
| 351 |
|
| 352 |
/** |
| 353 |
* Returns associative array containing dst, offset and the timezone name |
| 354 |
* @link http://www.php.net/manual/en/datetimezone.listabbreviations.php |
| 355 |
*/ |
| 356 |
public static function listAbbreviations () {} |
| 357 |
|
| 358 |
/** |
| 359 |
* Returns a numerically indexed array containing all defined timezone identifiers |
| 360 |
* @link http://www.php.net/manual/en/datetimezone.listidentifiers.php |
| 361 |
* @param what[optional] |
| 362 |
* @param country[optional] |
| 363 |
*/ |
| 364 |
public static function listIdentifiers ($what, $country) {} |
| 365 |
|
| 366 |
} |
| 367 |
|
| 368 |
class DateInterval { |
| 369 |
|
| 370 |
/** |
| 371 |
* Creates a new DateInterval object |
| 372 |
* @link http://www.php.net/manual/en/dateinterval.construct.php |
| 373 |
* @param interval_spec[optional] |
| 374 |
*/ |
| 375 |
public function __construct ($interval_spec) {} |
| 376 |
|
| 377 |
public function __wakeup () {} |
| 378 |
|
| 379 |
public static function __set_state () {} |
| 380 |
|
| 381 |
/** |
| 382 |
* Formats the interval |
| 383 |
* @link http://www.php.net/manual/en/dateinterval.format.php |
| 384 |
* @param format |
| 385 |
*/ |
| 386 |
public function format ($format) {} |
| 387 |
|
| 388 |
/** |
| 389 |
* Sets up a DateInterval from the relative parts of the string |
| 390 |
* @link http://www.php.net/manual/en/dateinterval.createfromdatestring.php |
| 391 |
* @param time |
| 392 |
*/ |
| 393 |
public static function createFromDateString ($time) {} |
| 394 |
|
| 395 |
} |
| 396 |
|
| 397 |
class DatePeriod implements Traversable { |
| 398 |
const EXCLUDE_START_DATE = 1; |
| 399 |
|
| 400 |
|
| 401 |
/** |
| 402 |
* Creates a new DatePeriod object |
| 403 |
* @link http://www.php.net/manual/en/dateperiod.construct.php |
| 404 |
* @param start |
| 405 |
* @param interval |
| 406 |
* @param end |
| 407 |
*/ |
| 408 |
public function __construct ($start, $interval, $end) {} |
| 409 |
|
| 410 |
public function __wakeup () {} |
| 411 |
|
| 412 |
public static function __set_state () {} |
| 413 |
|
| 414 |
} |
| 415 |
|
| 416 |
/** |
| 417 |
* Parse about any English textual datetime description into a Unix timestamp |
| 418 |
* @link http://www.php.net/manual/en/function.strtotime.php |
| 419 |
* @param time string <p>&date.formats.parameter;</p> |
| 420 |
* @param now int[optional] <p> |
| 421 |
* The timestamp which is used as a base for the calculation of relative |
| 422 |
* dates. |
| 423 |
* </p> |
| 424 |
* @return int a timestamp on success, false otherwise. Previous to PHP 5.1.0, |
| 425 |
* this function would return -1 on failure. |
| 426 |
*/ |
| 427 |
function strtotime ($time, $now = null) {} |
| 428 |
|
| 429 |
/** |
| 430 |
* Format a local time/date |
| 431 |
* @link http://www.php.net/manual/en/function.date.php |
| 432 |
* @param format string <p> |
| 433 |
* The format of the outputted date string. See the formatting |
| 434 |
* options below. There are also several |
| 435 |
* predefined date constants |
| 436 |
* that may be used instead, so for example DATE_RSS |
| 437 |
* contains the format string 'D, d M Y H:i:s'. |
| 438 |
* </p> |
| 439 |
* <p> |
| 440 |
* <table> |
| 441 |
* The following characters are recognized in the |
| 442 |
* format parameter string |
| 443 |
* |
| 444 |
* |
| 445 |
* <tr valign="top"> |
| 446 |
* <td>format character</td> |
| 447 |
* <td>Description</td> |
| 448 |
* <td>Example returned values</td> |
| 449 |
* </tr> |
| 450 |
* |
| 451 |
* |
| 452 |
* <tr valign="top"> |
| 453 |
* Day</td> |
| 454 |
* <td>---</td> |
| 455 |
* <td>---</td> |
| 456 |
* </tr> |
| 457 |
* <tr valign="top"> |
| 458 |
* <td>d</td> |
| 459 |
* <td>Day of the month, 2 digits with leading zeros</td> |
| 460 |
* <td>01 to 31</td> |
| 461 |
* </tr> |
| 462 |
* <tr valign="top"> |
| 463 |
* <td>D</td> |
| 464 |
* <td>A textual representation of a day, three letters</td> |
| 465 |
* <td>Mon through Sun</td> |
| 466 |
* </tr> |
| 467 |
* <tr valign="top"> |
| 468 |
* <td>j</td> |
| 469 |
* <td>Day of the month without leading zeros</td> |
| 470 |
* <td>1 to 31</td> |
| 471 |
* </tr> |
| 472 |
* <tr valign="top"> |
| 473 |
* <td>l (lowercase 'L')</td> |
| 474 |
* <td>A full textual representation of the day of the week</td> |
| 475 |
* <td>Sunday through Saturday</td> |
| 476 |
* </tr> |
| 477 |
* <tr valign="top"> |
| 478 |
* <td>N</td> |
| 479 |
* <td>ISO-8601 numeric representation of the day of the week (added in |
| 480 |
* PHP 5.1.0)</td> |
| 481 |
* <td>1 (for Monday) through 7 (for Sunday)</td> |
| 482 |
* </tr> |
| 483 |
* <tr valign="top"> |
| 484 |
* <td>S</td> |
| 485 |
* <td>English ordinal suffix for the day of the month, 2 characters</td> |
| 486 |
* <td> |
| 487 |
* st, nd, rd or |
| 488 |
* th. Works well with j |
| 489 |
* </td> |
| 490 |
* </tr> |
| 491 |
* <tr valign="top"> |
| 492 |
* <td>w</td> |
| 493 |
* <td>Numeric representation of the day of the week</td> |
| 494 |
* <td>0 (for Sunday) through 6 (for Saturday)</td> |
| 495 |
* </tr> |
| 496 |
* <tr valign="top"> |
| 497 |
* <td>z</td> |
| 498 |
* <td>The day of the year (starting from 0)</td> |
| 499 |
* <td>0 through 365</td> |
| 500 |
* </tr> |
| 501 |
* <tr valign="top"> |
| 502 |
* Week</td> |
| 503 |
* <td>---</td> |
| 504 |
* <td>---</td> |
| 505 |
* </tr> |
| 506 |
* <tr valign="top"> |
| 507 |
* <td>W</td> |
| 508 |
* <td>ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)</td> |
| 509 |
* <td>Example: 42 (the 42nd week in the year)</td> |
| 510 |
* </tr> |
| 511 |
* <tr valign="top"> |
| 512 |
* Month</td> |
| 513 |
* <td>---</td> |
| 514 |
* <td>---</td> |
| 515 |
* </tr> |
| 516 |
* <tr valign="top"> |
| 517 |
* <td>F</td> |
| 518 |
* <td>A full textual representation of a month, such as January or March</td> |
| 519 |
* <td>January through December</td> |
| 520 |
* </tr> |
| 521 |
* <tr valign="top"> |
| 522 |
* <td>m</td> |
| 523 |
* <td>Numeric representation of a month, with leading zeros</td> |
| 524 |
* <td>01 through 12</td> |
| 525 |
* </tr> |
| 526 |
* <tr valign="top"> |
| 527 |
* <td>M</td> |
| 528 |
* <td>A short textual representation of a month, three letters</td> |
| 529 |
* <td>Jan through Dec</td> |
| 530 |
* </tr> |
| 531 |
* <tr valign="top"> |
| 532 |
* <td>n</td> |
| 533 |
* <td>Numeric representation of a month, without leading zeros</td> |
| 534 |
* <td>1 through 12</td> |
| 535 |
* </tr> |
| 536 |
* <tr valign="top"> |
| 537 |
* <td>t</td> |
| 538 |
* <td>Number of days in the given month</td> |
| 539 |
* <td>28 through 31</td> |
| 540 |
* </tr> |
| 541 |
* <tr valign="top"> |
| 542 |
* Year</td> |
| 543 |
* <td>---</td> |
| 544 |
* <td>---</td> |
| 545 |
* </tr> |
| 546 |
* <tr valign="top"> |
| 547 |
* <td>L</td> |
| 548 |
* <td>Whether it's a leap year</td> |
| 549 |
* <td>1 if it is a leap year, 0 otherwise.</td> |
| 550 |
* </tr> |
| 551 |
* <tr valign="top"> |
| 552 |
* <td>o</td> |
| 553 |
* <td>ISO-8601 year number. This has the same value as |
| 554 |
* Y, except that if the ISO week number |
| 555 |
* (W) belongs to the previous or next year, that year |
| 556 |
* is used instead. (added in PHP 5.1.0)</td> |
| 557 |
* <td>Examples: 1999 or 2003</td> |
| 558 |
* </tr> |
| 559 |
* <tr valign="top"> |
| 560 |
* <td>Y</td> |
| 561 |
* <td>A full numeric representation of a year, 4 digits</td> |
| 562 |
* <td>Examples: 1999 or 2003</td> |
| 563 |
* </tr> |
| 564 |
* <tr valign="top"> |
| 565 |
* <td>y</td> |
| 566 |
* <td>A two digit representation of a year</td> |
| 567 |
* <td>Examples: 99 or 03</td> |
| 568 |
* </tr> |
| 569 |
* <tr valign="top"> |
| 570 |
* Time</td> |
| 571 |
* <td>---</td> |
| 572 |
* <td>---</td> |
| 573 |
* </tr> |
| 574 |
* <tr valign="top"> |
| 575 |
* <td>a</td> |
| 576 |
* <td>Lowercase Ante meridiem and Post meridiem</td> |
| 577 |
* <td>am or pm</td> |
| 578 |
* </tr> |
| 579 |
* <tr valign="top"> |
| 580 |
* <td>A</td> |
| 581 |
* <td>Uppercase Ante meridiem and Post meridiem</td> |
| 582 |
* <td>AM or PM</td> |
| 583 |
* </tr> |
| 584 |
* <tr valign="top"> |
| 585 |
* <td>B</td> |
| 586 |
* <td>Swatch Internet time</td> |
| 587 |
* <td>000 through 999</td> |
| 588 |
* </tr> |
| 589 |
* <tr valign="top"> |
| 590 |
* <td>g</td> |
| 591 |
* <td>12-hour format of an hour without leading zeros</td> |
| 592 |
* <td>1 through 12</td> |
| 593 |
* </tr> |
| 594 |
* <tr valign="top"> |
| 595 |
* <td>G</td> |
| 596 |
* <td>24-hour format of an hour without leading zeros</td> |
| 597 |
* <td>0 through 23</td> |
| 598 |
* </tr> |
| 599 |
* <tr valign="top"> |
| 600 |
* <td>h</td> |
| 601 |
* <td>12-hour format of an hour with leading zeros</td> |
| 602 |
* <td>01 through 12</td> |
| 603 |
* </tr> |
| 604 |
* <tr valign="top"> |
| 605 |
* <td>H</td> |
| 606 |
* <td>24-hour format of an hour with leading zeros</td> |
| 607 |
* <td>00 through 23</td> |
| 608 |
* </tr> |
| 609 |
* <tr valign="top"> |
| 610 |
* <td>i</td> |
| 611 |
* <td>Minutes with leading zeros</td> |
| 612 |
* <td>00 to 59</td> |
| 613 |
* </tr> |
| 614 |
* <tr valign="top"> |
| 615 |
* <td>s</td> |
| 616 |
* <td>Seconds, with leading zeros</td> |
| 617 |
* <td>00 through 59</td> |
| 618 |
* </tr> |
| 619 |
* <tr valign="top"> |
| 620 |
* <td>u</td> |
| 621 |
* <td> |
| 622 |
* Microseconds (added in PHP 5.2.2). Note that |
| 623 |
* date will always generate |
| 624 |
* 000000 since it takes an integer |
| 625 |
* parameter, whereas DateTime::format does |
| 626 |
* support microseconds. |
| 627 |
* </td> |
| 628 |
* <td>Example: 654321</td> |
| 629 |
* </tr> |
| 630 |
* <tr valign="top"> |
| 631 |
* Timezone</td> |
| 632 |
* <td>---</td> |
| 633 |
* <td>---</td> |
| 634 |
* </tr> |
| 635 |
* <tr valign="top"> |
| 636 |
* <td>e</td> |
| 637 |
* <td>Timezone identifier (added in PHP 5.1.0)</td> |
| 638 |
* <td>Examples: UTC, GMT, Atlantic/Azores</td> |
| 639 |
* </tr> |
| 640 |
* <tr valign="top"> |
| 641 |
* <td>I (capital i)</td> |
| 642 |
* <td>Whether or not the date is in daylight saving time</td> |
| 643 |
* <td>1 if Daylight Saving Time, 0 otherwise.</td> |
| 644 |
* </tr> |
| 645 |
* <tr valign="top"> |
| 646 |
* <td>O</td> |
| 647 |
* <td>Difference to Greenwich time (GMT) in hours</td> |
| 648 |
* <td>Example: +0200</td> |
| 649 |
* </tr> |
| 650 |
* <tr valign="top"> |
| 651 |
* <td>P</td> |
| 652 |
* <td>Difference to Greenwich time (GMT) with colon between hours and minutes (added in PHP 5.1.3)</td> |
| 653 |
* <td>Example: +02:00</td> |
| 654 |
* </tr> |
| 655 |
* <tr valign="top"> |
| 656 |
* <td>T</td> |
| 657 |
* <td>Timezone abbreviation</td> |
| 658 |
* <td>Examples: EST, MDT ...</td> |
| 659 |
* </tr> |
| 660 |
* <tr valign="top"> |
| 661 |
* <td>Z</td> |
| 662 |
* <td>Timezone offset in seconds. The offset for timezones west of UTC is always |
| 663 |
* negative, and for those east of UTC is always positive.</td> |
| 664 |
* <td>-43200 through 50400</td> |
| 665 |
* </tr> |
| 666 |
* <tr valign="top"> |
| 667 |
* Full Date/Time</td> |
| 668 |
* <td>---</td> |
| 669 |
* <td>---</td> |
| 670 |
* </tr> |
| 671 |
* <tr valign="top"> |
| 672 |
* <td>c</td> |
| 673 |
* <td>ISO 8601 date (added in PHP 5)</td> |
| 674 |
* <td>2004-02-12T15:19:21+00:00</td> |
| 675 |
* </tr> |
| 676 |
* <tr valign="top"> |
| 677 |
* <td>r</td> |
| 678 |
* <td>RFC 2822 formatted date</td> |
| 679 |
* <td>Example: Thu, 21 Dec 2000 16:01:07 +0200</td> |
| 680 |
* </tr> |
| 681 |
* <tr valign="top"> |
| 682 |
* <td>U</td> |
| 683 |
* <td>Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)</td> |
| 684 |
* <td>See also time</td> |
| 685 |
* </tr> |
| 686 |
* |
| 687 |
* |
| 688 |
* </table> |
| 689 |
* </p> |
| 690 |
* <p> |
| 691 |
* Unrecognized characters in the format string will be printed |
| 692 |
* as-is. The Z format will always return |
| 693 |
* 0 when using gmdate. |
| 694 |
* </p> |
| 695 |
* |
| 696 |
* <p> |
| 697 |
* Since this function only accepts integer timestamps the |
| 698 |
* u format character is only useful when using the |
| 699 |
* date_format function with user based timestamps |
| 700 |
* created with date_create. |
| 701 |
* </p> |
| 702 |
* @param timestamp int[optional] |
| 703 |
* @return string a formatted date string. If a non-numeric value is used for |
| 704 |
* timestamp, false is returned and an |
| 705 |
* E_WARNING level error is emitted. |
| 706 |
*/ |
| 707 |
function date ($format, $timestamp = null) {} |
| 708 |
|
| 709 |
/** |
| 710 |
* Format a local time/date as integer |
| 711 |
* @link http://www.php.net/manual/en/function.idate.php |
| 712 |
* @param format string <p> |
| 713 |
* <table> |
| 714 |
* The following characters are recognized in the |
| 715 |
* format parameter string |
| 716 |
* |
| 717 |
* |
| 718 |
* <tr valign="top"> |
| 719 |
* <td>format character</td> |
| 720 |
* <td>Description</td> |
| 721 |
* </tr> |
| 722 |
* |
| 723 |
* |
| 724 |
* <tr valign="top"> |
| 725 |
* <td>B</td> |
| 726 |
* <td>Swatch Beat/Internet Time</td> |
| 727 |
* </tr> |
| 728 |
* <tr valign="top"> |
| 729 |
* <td>d</td> |
| 730 |
* <td>Day of the month</td> |
| 731 |
* </tr> |
| 732 |
* <tr valign="top"> |
| 733 |
* <td>h</td> |
| 734 |
* <td>Hour (12 hour format)</td> |
| 735 |
* </tr> |
| 736 |
* <tr valign="top"> |
| 737 |
* <td>H</td> |
| 738 |
* <td>Hour (24 hour format)</td> |
| 739 |
* </tr> |
| 740 |
* <tr valign="top"> |
| 741 |
* <td>i</td> |
| 742 |
* <td>Minutes</td> |
| 743 |
* </tr> |
| 744 |
* <tr valign="top"> |
| 745 |
* <td>I (uppercase i)</td> |
| 746 |
* <td>returns 1 if DST is activated, |
| 747 |
* 0 otherwise</td> |
| 748 |
* </tr> |
| 749 |
* <tr valign="top"> |
| 750 |
* <td>L (uppercase l)</td> |
| 751 |
* <td>returns 1 for leap year, |
| 752 |
* 0 otherwise</td> |
| 753 |
* </tr> |
| 754 |
* <tr valign="top"> |
| 755 |
* <td>m</td> |
| 756 |
* <td>Month number</td> |
| 757 |
* </tr> |
| 758 |
* <tr valign="top"> |
| 759 |
* <td>s</td> |
| 760 |
* <td>Seconds</td> |
| 761 |
* </tr> |
| 762 |
* <tr valign="top"> |
| 763 |
* <td>t</td> |
| 764 |
* <td>Days in current month</td> |
| 765 |
* </tr> |
| 766 |
* <tr valign="top"> |
| 767 |
* <td>U</td> |
| 768 |
* <td>Seconds since the Unix Epoch - January 1 1970 00:00:00 UTC - |
| 769 |
* this is the same as time</td> |
| 770 |
* </tr> |
| 771 |
* <tr valign="top"> |
| 772 |
* <td>w</td> |
| 773 |
* <td>Day of the week (0 on Sunday)</td> |
| 774 |
* </tr> |
| 775 |
* <tr valign="top"> |
| 776 |
* <td>W</td> |
| 777 |
* <td>ISO-8601 week number of year, weeks starting on |
| 778 |
* Monday</td> |
| 779 |
* </tr> |
| 780 |
* <tr valign="top"> |
| 781 |
* <td>y</td> |
| 782 |
* <td>Year (1 or 2 digits - check note below)</td> |
| 783 |
* </tr> |
| 784 |
* <tr valign="top"> |
| 785 |
* <td>Y</td> |
| 786 |
* <td>Year (4 digits)</td> |
| 787 |
* </tr> |
| 788 |
* <tr valign="top"> |
| 789 |
* <td>z</td> |
| 790 |
* <td>Day of the year</td> |
| 791 |
* </tr> |
| 792 |
* <tr valign="top"> |
| 793 |
* <td>Z</td> |
| 794 |
* <td>Timezone offset in seconds</td> |
| 795 |
* </tr> |
| 796 |
* |
| 797 |
* |
| 798 |
* </table> |
| 799 |
* </p> |
| 800 |
* @param timestamp int[optional] |
| 801 |
* @return int an integer. |
| 802 |
* </p> |
| 803 |
* <p> |
| 804 |
* As idate always returns an integer and |
| 805 |
* as they can't start with a "0", idate may return |
| 806 |
* fewer digits than you would expect. See the example below. |
| 807 |
*/ |
| 808 |
function idate ($format, $timestamp = null) {} |
| 809 |
|
| 810 |
/** |
| 811 |
* Format a GMT/UTC date/time |
| 812 |
* @link http://www.php.net/manual/en/function.gmdate.php |
| 813 |
* @param format string <p> |
| 814 |
* The format of the outputted date string. See the formatting |
| 815 |
* options for the date function. |
| 816 |
* </p> |
| 817 |
* @param timestamp int[optional] |
| 818 |
* @return string a formatted date string. If a non-numeric value is used for |
| 819 |
* timestamp, false is returned and an |
| 820 |
* E_WARNING level error is emitted. |
| 821 |
*/ |
| 822 |
function gmdate ($format, $timestamp = null) {} |
| 823 |
|
| 824 |
/** |
| 825 |
* Get Unix timestamp for a date |
| 826 |
* @link http://www.php.net/manual/en/function.mktime.php |
| 827 |
* @param hour int[optional] <p> |
| 828 |
* The number of the hour relative to the start of the day determined by |
| 829 |
* month, day and year. |
| 830 |
* Negative values reference the hour before midnight of the day in question. |
| 831 |
* Values greater than 23 reference the appropriate hour in the following day(s). |
| 832 |
* </p> |
| 833 |
* @param minute int[optional] <p> |
| 834 |
* The number of the minute relative to the start of the hour. |
| 835 |
* Negative values reference the minute in the previous hour. |
| 836 |
* Values greater than 59 reference the appropriate minute in the following hour(s). |
| 837 |
* </p> |
| 838 |
* @param second int[optional] <p> |
| 839 |
* The number of seconds relative to the start of the minute. |
| 840 |
* Negative values reference the second in the previous minute. |
| 841 |
* Values greater than 59 reference the appropriate second in the following minute(s). |
| 842 |
* </p> |
| 843 |
* @param month int[optional] <p> |
| 844 |
* The number of the month relative to the end of the previous year. |
| 845 |
* Values 1 to 12 reference the normal calendar months of the year in question. |
| 846 |
* Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc. |
| 847 |
* Values greater than 12 reference the appropriate month in the following year(s). |
| 848 |
* </p> |
| 849 |
* @param day int[optional] <p> |
| 850 |
* The number of the day relative to the end of the previous month. |
| 851 |
* Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month. |
| 852 |
* Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc. |
| 853 |
* Values greater than the number of days in the relevant month reference the appropriate day in the following month(s). |
| 854 |
* </p> |
| 855 |
* @param year int[optional] <p> |
| 856 |
* The number of the year, may be a two or four digit value, |
| 857 |
* with values between 0-69 mapping to 2000-2069 and 70-100 to |
| 858 |
* 1970-2000. On systems where time_t is a 32bit signed integer, as |
| 859 |
* most common today, the valid range for year |
| 860 |
* is somewhere between 1901 and 2038. However, before PHP 5.1.0 this |
| 861 |
* range was limited from 1970 to 2038 on some systems (e.g. Windows). |
| 862 |
* </p> |
| 863 |
* @param is_dst int[optional] <p> |
| 864 |
* This parameter can be set to 1 if the time is during daylight savings time (DST), |
| 865 |
* 0 if it is not, or -1 (the default) if it is unknown whether the time is within |
| 866 |
* daylight savings time or not. If it's unknown, PHP tries to figure it out itself. |
| 867 |
* This can cause unexpected (but not incorrect) results. |
| 868 |
* Some times are invalid if DST is enabled on the system PHP is running on or |
| 869 |
* is_dst is set to 1. If DST is enabled in e.g. 2:00, all times |
| 870 |
* between 2:00 and 3:00 are invalid and mktime returns an undefined |
| 871 |
* (usually negative) value. |
| 872 |
* Some systems (e.g. Solaris 8) enable DST at midnight so time 0:30 of the day when DST |
| 873 |
* is enabled is evaluated as 23:30 of the previous day. |
| 874 |
* </p> |
| 875 |
* |
| 876 |
* <p> |
| 877 |
* As of PHP 5.1.0, this parameter became deprecated. As a result, the |
| 878 |
* new timezone handling features should be used instead. |
| 879 |
* </p> |
| 880 |
* @return int mktime returns the Unix timestamp of the arguments |
| 881 |
* given. |
| 882 |
* If the arguments are invalid, the function returns false (before PHP 5.1 |
| 883 |
* it returned -1). |
| 884 |
*/ |
| 885 |
function mktime ($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $is_dst = null) {} |
| 886 |
|
| 887 |
/** |
| 888 |
* Get Unix timestamp for a GMT date |
| 889 |
* @link http://www.php.net/manual/en/function.gmmktime.php |
| 890 |
* @param hour int[optional] <p> |
| 891 |
* The number of the hour relative to the start of the day determined by |
| 892 |
* month, day and year. |
| 893 |
* Negative values reference the hour before midnight of the day in question. |
| 894 |
* Values greater than 23 reference the appropriate hour in the following day(s). |
| 895 |
* </p> |
| 896 |
* @param minute int[optional] <p> |
| 897 |
* The number of the minute relative to the start of the hour. |
| 898 |
* Negative values reference the minute in the previous hour. |
| 899 |
* Values greater than 59 reference the appropriate minute in the following hour(s). |
| 900 |
* </p> |
| 901 |
* @param second int[optional] <p> |
| 902 |
* The number of seconds relative to the start of the minute. |
| 903 |
* Negative values reference the second in the previous minute. |
| 904 |
* Values greater than 59 reference the appropriate second in the following minute(s). |
| 905 |
* </p> |
| 906 |
* @param month int[optional] <p> |
| 907 |
* The number of the month relative to the end of the previous year. |
| 908 |
* Values 1 to 12 reference the normal calendar months of the year in question. |
| 909 |
* Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc. |
| 910 |
* Values greater than 12 reference the appropriate month in the following year(s). |
| 911 |
* </p> |
| 912 |
* @param day int[optional] <p> |
| 913 |
* The number of the day relative to the end of the previous month. |
| 914 |
* Values 1 to 28, 29, 30 or 31 (depending upon the month) reference the normal days in the relevant month. |
| 915 |
* Values less than 1 (including negative values) reference the days in the previous month, so 0 is the last day of the previous month, -1 is the day before that, etc. |
| 916 |
* Values greater than the number of days in the relevant month reference the appropriate day in the following month(s). |
| 917 |
* </p> |
| 918 |
* @param year int[optional] <p> |
| 919 |
* The year |
| 920 |
* </p> |
| 921 |
* @param is_dst int[optional] <p> |
| 922 |
* Parameters always represent a GMT date so is_dst |
| 923 |
* doesn't influence the result. |
| 924 |
* </p> |
| 925 |
* @return int a integer Unix timestamp. |
| 926 |
*/ |
| 927 |
function gmmktime ($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $is_dst = null) {} |
| 928 |
|
| 929 |
/** |
| 930 |
* Validate a Gregorian date |
| 931 |
* @link http://www.php.net/manual/en/function.checkdate.php |
| 932 |
* @param month int <p> |
| 933 |
* The month is between 1 and 12 inclusive. |
| 934 |
* </p> |
| 935 |
* @param day int <p> |
| 936 |
* The day is within the allowed number of days for the given |
| 937 |
* month. Leap years |
| 938 |
* are taken into consideration. |
| 939 |
* </p> |
| 940 |
* @param year int <p> |
| 941 |
* The year is between 1 and 32767 inclusive. |
| 942 |
* </p> |
| 943 |
* @return bool true if the date given is valid; otherwise returns false. |
| 944 |
*/ |
| 945 |
function checkdate ($month, $day, $year) {} |
| 946 |
|
| 947 |
/** |
| 948 |
* Format a local time/date according to locale settings |
| 949 |
* @link http://www.php.net/manual/en/function.strftime.php |
| 950 |
* @param format string <p> |
| 951 |
* <table> |
| 952 |
* The following characters are recognized in the |
| 953 |
* format parameter string |
| 954 |
* |
| 955 |
* |
| 956 |
* <tr valign="top"> |
| 957 |
* <td>format</td> |
| 958 |
* <td>Description</td> |
| 959 |
* <td>Example returned values</td> |
| 960 |
* </tr> |
| 961 |
* |
| 962 |
* |
| 963 |
* <tr valign="top"> |
| 964 |
* Day</td> |
| 965 |
* <td>---</td> |
| 966 |
* <td>---</td> |
| 967 |
* </tr> |
| 968 |
* <tr valign="top"> |
| 969 |
* <td>%a</td> |
| 970 |
* <td>An abbreviated textual representation of the day</td> |
| 971 |
* <td>Sun through Sat</td> |
| 972 |
* </tr> |
| 973 |
* <tr valign="top"> |
| 974 |
* <td>%A</td> |
| 975 |
* <td>A full textual representation of the day</td> |
| 976 |
* <td>Sunday through Saturday</td> |
| 977 |
* </tr> |
| 978 |
* <tr valign="top"> |
| 979 |
* <td>%d</td> |
| 980 |
* <td>Two-digit day of the month (with leading zeros)</td> |
| 981 |
* <td>01 to 31</td> |
| 982 |
* </tr> |
| 983 |
* <tr valign="top"> |
| 984 |
* <td>%e</td> |
| 985 |
* <td> |
| 986 |
* Day of the month, with a space preceding single digits. Not |
| 987 |
* implemented as described on Windows. See below for more information. |
| 988 |
* </td> |
| 989 |
* <td> 1 to 31</td> |
| 990 |
* </tr> |
| 991 |
* <tr valign="top"> |
| 992 |
* <td>%j</td> |
| 993 |
* <td>Day of the year, 3 digits with leading zeros</td> |
| 994 |
* <td>001 to 366</td> |
| 995 |
* </tr> |
| 996 |
* <tr valign="top"> |
| 997 |
* <td>%u</td> |
| 998 |
* <td>ISO-8601 numeric representation of the day of the week</td> |
| 999 |
* <td>1 (for Monday) though 7 (for Sunday)</td> |
| 1000 |
* </tr> |
| 1001 |
* <tr valign="top"> |
| 1002 |
* <td>%w</td> |
| 1003 |
* <td>Numeric representation of the day of the week</td> |
| 1004 |
* <td>0 (for Sunday) through 6 (for Saturday)</td> |
| 1005 |
* </tr> |
| 1006 |
* <tr valign="top"> |
| 1007 |
* Week</td> |
| 1008 |
* <td>---</td> |
| 1009 |
* <td>---</td> |
| 1010 |
* </tr> |
| 1011 |
* <tr valign="top"> |
| 1012 |
* <td>%U</td> |
| 1013 |
* <td>Week number of the given year, starting with the first |
| 1014 |
* Sunday as the first week</td> |
| 1015 |
* <td>13 (for the 13th full week of the year)</td> |
| 1016 |
* </tr> |
| 1017 |
* <tr valign="top"> |
| 1018 |
* <td>%V</td> |
| 1019 |
* <td>ISO-8601:1988 week number of the given year, starting with |
| 1020 |
* the first week of the year with at least 4 weekdays, with Monday |
| 1021 |
* being the start of the week</td> |
| 1022 |
* <td>01 through 53 (where 53 |
| 1023 |
* accounts for an overlapping week)</td> |
| 1024 |
* </tr> |
| 1025 |
* <tr valign="top"> |
| 1026 |
* <td>%W</td> |
| 1027 |
* <td>A numeric representation of the week of the year, starting |
| 1028 |
* with the first Monday as the first week</td> |
| 1029 |
* <td>46 (for the 46th week of the year beginning |
| 1030 |
* with a Monday)</td> |
| 1031 |
* </tr> |
| 1032 |
* <tr valign="top"> |
| 1033 |
* Month</td> |
| 1034 |
* <td>---</td> |
| 1035 |
* <td>---</td> |
| 1036 |
* </tr> |
| 1037 |
* <tr valign="top"> |
| 1038 |
* <td>%b</td> |
| 1039 |
* <td>Abbreviated month name, based on the locale</td> |
| 1040 |
* <td>Jan through Dec</td> |
| 1041 |
* </tr> |
| 1042 |
* <tr valign="top"> |
| 1043 |
* <td>%B</td> |
| 1044 |
* <td>Full month name, based on the locale</td> |
| 1045 |
* <td>January through December</td> |
| 1046 |
* </tr> |
| 1047 |
* <tr valign="top"> |
| 1048 |
* <td>%h</td> |
| 1049 |
* <td>Abbreviated month name, based on the locale (an alias of %b)</td> |
| 1050 |
* <td>Jan through Dec</td> |
| 1051 |
* </tr> |
| 1052 |
* <tr valign="top"> |
| 1053 |
* <td>%m</td> |
| 1054 |
* <td>Two digit representation of the month</td> |
| 1055 |
* <td>01 (for January) through 12 (for December)</td> |
| 1056 |
* </tr> |
| 1057 |
* <tr valign="top"> |
| 1058 |
* Year</td> |
| 1059 |
* <td>---</td> |
| 1060 |
* <td>---</td> |
| 1061 |
* </tr> |
| 1062 |
* <tr valign="top"> |
| 1063 |
* <td>%C</td> |
| 1064 |
* <td>Two digit representation of the century (year divided by 100, truncated to an integer)</td> |
| 1065 |
* <td>19 for the 20th Century</td> |
| 1066 |
* </tr> |
| 1067 |
* <tr valign="top"> |
| 1068 |
* <td>%g</td> |
| 1069 |
* <td>Two digit representation of the year going by ISO-8601:1988 standards (see %V)</td> |
| 1070 |
* <td>Example: 09 for the week of January 6, 2009</td> |
| 1071 |
* </tr> |
| 1072 |
* <tr valign="top"> |
| 1073 |
* <td>%G</td> |
| 1074 |
* <td>The full four-digit version of %g</td> |
| 1075 |
* <td>Example: 2008 for the week of January 3, 2009</td> |
| 1076 |
* </tr> |
| 1077 |
* <tr valign="top"> |
| 1078 |
* <td>%y</td> |
| 1079 |
* <td>Two digit representation of the year</td> |
| 1080 |
* <td>Example: 09 for 2009, 79 for 1979</td> |
| 1081 |
* </tr> |
| 1082 |
* <tr valign="top"> |
| 1083 |
* <td>%Y</td> |
| 1084 |
* <td>Four digit representation for the year</td> |
| 1085 |
* <td>Example: 2038</td> |
| 1086 |
* </tr> |
| 1087 |
* <tr valign="top"> |
| 1088 |
* Time</td> |
| 1089 |
* <td>---</td> |
| 1090 |
* <td>---</td> |
| 1091 |
* </tr> |
| 1092 |
* <tr valign="top"> |
| 1093 |
* <td>%H</td> |
| 1094 |
* <td>Two digit representation of the hour in 24-hour format</td> |
| 1095 |
* <td>00 through 23</td> |
| 1096 |
* </tr> |
| 1097 |
* <tr valign="top"> |
| 1098 |
* <td>%k</td> |
| 1099 |
* <td>Two digit representation of the hour in 24-hour format, with |
| 1100 |
* a space preceding single digits</td> |
| 1101 |
* <td> 0 through 23</td> |
| 1102 |
* </tr> |
| 1103 |
* <tr valign="top"> |
| 1104 |
* <td>%I</td> |
| 1105 |
* <td>Two digit representation of the hour in 12-hour format</td> |
| 1106 |
* <td>01 through 12</td> |
| 1107 |
* </tr> |
| 1108 |
* <tr valign="top"> |
| 1109 |
* <td>%l (lower-case 'L')</td> |
| 1110 |
* <td>Hour in 12-hour format, with a space preceding single digits</td> |
| 1111 |
* <td> 1 through 12</td> |
| 1112 |
* </tr> |
| 1113 |
* <tr valign="top"> |
| 1114 |
* <td>%M</td> |
| 1115 |
* <td>Two digit representation of the minute</td> |
| 1116 |
* <td>00 through 59</td> |
| 1117 |
* </tr> |
| 1118 |
* <tr valign="top"> |
| 1119 |
* <td>%p</td> |
| 1120 |
* <td>UPPER-CASE 'AM' or 'PM' based on the given time</td> |
| 1121 |
* <td>Example: AM for 00:31, PM for 22:23</td> |
| 1122 |
* </tr> |
| 1123 |
* <tr valign="top"> |
| 1124 |
* <td>%P</td> |
| 1125 |
* <td>lower-case 'am' or 'pm' based on the given time</td> |
| 1126 |
* <td>Example: am for 00:31, pm for 22:23</td> |
| 1127 |
* </tr> |
| 1128 |
* <tr valign="top"> |
| 1129 |
* <td>%r</td> |
| 1130 |
* <td>Same as "%I:%M:%S %p"</td> |
| 1131 |
* <td>Example: 09:34:17 PM for 21:34:17</td> |
| 1132 |
* </tr> |
| 1133 |
* <tr valign="top"> |
| 1134 |
* <td>%R</td> |
| 1135 |
* <td>Same as "%H:%M"</td> |
| 1136 |
* <td>Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM</td> |
| 1137 |
* </tr> |
| 1138 |
* <tr valign="top"> |
| 1139 |
* <td>%S</td> |
| 1140 |
* <td>Two digit representation of the second</td> |
| 1141 |
* <td>00 through 59</td> |
| 1142 |
* </tr> |
| 1143 |
* <tr valign="top"> |
| 1144 |
* <td>%T</td> |
| 1145 |
* <td>Same as "%H:%M:%S"</td> |
| 1146 |
* <td>Example: 21:34:17 for 09:34:17 PM</td> |
| 1147 |
* </tr> |
| 1148 |
* <tr valign="top"> |
| 1149 |
* <td>%X</td> |
| 1150 |
* <td>Preferred time representation based on locale, without the date</td> |
| 1151 |
* <td>Example: 03:59:16 or 15:59:16</td> |
| 1152 |
* </tr> |
| 1153 |
* <tr valign="top"> |
| 1154 |
* <td>%z</td> |
| 1155 |
* <td>The time zone offset. Not implemented as described on |
| 1156 |
* Windows. See below for more information.</td> |
| 1157 |
* <td>Example: -0500 for US Eastern Time</td> |
| 1158 |
* </tr> |
| 1159 |
* <tr valign="top"> |
| 1160 |
* <td>%Z</td> |
| 1161 |
* <td>The time zone abbreviation. Not implemented as described on |
| 1162 |
* Windows. See below for more information.</td> |
| 1163 |
* <td>Example: EST for Eastern Time</td> |
| 1164 |
* </tr> |
| 1165 |
* <tr valign="top"> |
| 1166 |
* Time and Date Stamps</td> |
| 1167 |
* <td>---</td> |
| 1168 |
* <td>---</td> |
| 1169 |
* </tr> |
| 1170 |
* <tr valign="top"> |
| 1171 |
* <td>%c</td> |
| 1172 |
* <td>Preferred date and time stamp based on locale</td> |
| 1173 |
* <td>Example: Tue Feb 5 00:45:10 2009 for |
| 1174 |
* February 5, 2009 at 12:45:10 AM</td> |
| 1175 |
* </tr> |
| 1176 |
* <tr valign="top"> |
| 1177 |
* <td>%D</td> |
| 1178 |
* <td>Same as "%m/%d/%y"</td> |
| 1179 |
* <td>Example: 02/05/09 for February 5, 2009</td> |
| 1180 |
* </tr> |
| 1181 |
* <tr valign="top"> |
| 1182 |
* <td>%F</td> |
| 1183 |
* <td>Same as "%Y-%m-%d" (commonly used in database datestamps)</td> |
| 1184 |
* <td>Example: 2009-02-05 for February 5, 2009</td> |
| 1185 |
* </tr> |
| 1186 |
* <tr valign="top"> |
| 1187 |
* <td>%s</td> |
| 1188 |
* <td>Unix Epoch Time timestamp (same as the time |
| 1189 |
* function)</td> |
| 1190 |
* <td>Example: 305815200 for September 10, 1979 08:40:00 AM</td> |
| 1191 |
* </tr> |
| 1192 |
* <tr valign="top"> |
| 1193 |
* <td>%x</td> |
| 1194 |
* <td>Preferred date representation based on locale, without the time</td> |
| 1195 |
* <td>Example: 02/05/09 for February 5, 2009</td> |
| 1196 |
* </tr> |
| 1197 |
* <tr valign="top"> |
| 1198 |
* Miscellaneous</td> |
| 1199 |
* <td>---</td> |
| 1200 |
* <td>---</td> |
| 1201 |
* </tr> |
| 1202 |
* <tr valign="top"> |
| 1203 |
* <td>%n</td> |
| 1204 |
* <td>A newline character ("\n")</td> |
| 1205 |
* <td>---</td> |
| 1206 |
* </tr> |
| 1207 |
* <tr valign="top"> |
| 1208 |
* <td>%t</td> |
| 1209 |
* <td>A Tab character ("\t")</td> |
| 1210 |
* <td>---</td> |
| 1211 |
* </tr> |
| 1212 |
* <tr valign="top"> |
| 1213 |
* <td>%%</td> |
| 1214 |
* <td>A literal percentage character ("%")</td> |
| 1215 |
* <td>---</td> |
| 1216 |
* </tr> |
| 1217 |
* |
| 1218 |
* |
| 1219 |
* </table> |
| 1220 |
* </p> |
| 1221 |
* <p> |
| 1222 |
* Maximum length of this parameter is 1023 characters. |
| 1223 |
* </p> |
| 1224 |
* |
| 1225 |
* |
| 1226 |
* Contrary to ISO-9899:1999, Sun Solaris starts with Sunday as 1. As a |
| 1227 |
* result, %u may not function as described in this |
| 1228 |
* manual. |
| 1229 |
* |
| 1230 |
* |
| 1231 |
* |
| 1232 |
* <p> |
| 1233 |
* Windows only: |
| 1234 |
* </p> |
| 1235 |
* <p> |
| 1236 |
* The %e modifier is not supported in the Windows |
| 1237 |
* implementation of this function. To achieve this value, the |
| 1238 |
* %#d modifier can be used instead. The example below |
| 1239 |
* illustrates how to write a cross platform compatible function. |
| 1240 |
* </p> |
| 1241 |
* <p> |
| 1242 |
* The %z and %Z modifiers both |
| 1243 |
* return the time zone name instead of the offset or abbreviation. |
| 1244 |
* </p> |
| 1245 |
* |
| 1246 |
* |
| 1247 |
* |
| 1248 |
* Mac OS X only: The %P modifier |
| 1249 |
* is not supported in the Mac OS X implementation of this function. |
| 1250 |
* @param timestamp int[optional] |
| 1251 |
* @return string a string formatted according format |
| 1252 |
* using the given timestamp or the current |
| 1253 |
* local time if no timestamp is given. Month and weekday names and |
| 1254 |
* other language-dependent strings respect the current locale set |
| 1255 |
* with setlocale. |
| 1256 |
*/ |
| 1257 |
function strftime ($format, $timestamp = null) {} |
| 1258 |
|
| 1259 |
/** |
| 1260 |
* Format a GMT/UTC time/date according to locale settings |
| 1261 |
* @link http://www.php.net/manual/en/function.gmstrftime.php |
| 1262 |
* @param format string <p> |
| 1263 |
* See description in strftime. |
| 1264 |
* </p> |
| 1265 |
* @param timestamp int[optional] |
| 1266 |
* @return string a string formatted according to the given format string |
| 1267 |
* using the given timestamp or the current |
| 1268 |
* local time if no timestamp is given. Month and weekday names and |
| 1269 |
* other language dependent strings respect the current locale set |
| 1270 |
* with setlocale. |
| 1271 |
*/ |
| 1272 |
function gmstrftime ($format, $timestamp = null) {} |
| 1273 |
|
| 1274 |
/** |
| 1275 |
* Return current Unix timestamp |
| 1276 |
* @link http://www.php.net/manual/en/function.time.php |
| 1277 |
* @return int |
| 1278 |
*/ |
| 1279 |
function time () {} |
| 1280 |
|
| 1281 |
/** |
| 1282 |
* Get the local time |
| 1283 |
* @link http://www.php.net/manual/en/function.localtime.php |
| 1284 |
* @param timestamp int[optional] |
| 1285 |
* @param is_associative bool[optional] <p> |
| 1286 |
* If set to false or not supplied then the array is returned as a regular, |
| 1287 |
* numerically indexed array. If the argument is set to true then |
| 1288 |
* localtime returns an associative array containing |
| 1289 |
* all the different elements of the structure returned by the C |
| 1290 |
* function call to localtime. The names of the different keys of |
| 1291 |
* the associative array are as follows: |
| 1292 |
* </p> |
| 1293 |
* <p> |
| 1294 |
* |
| 1295 |
* |
| 1296 |
* |
| 1297 |
* "tm_sec" - seconds, 0 to 59 |
| 1298 |
* @return array |
| 1299 |
*/ |
| 1300 |
function localtime ($timestamp = null, $is_associative = null) {} |
| 1301 |
|
| 1302 |
/** |
| 1303 |
* Get date/time information |
| 1304 |
* @link http://www.php.net/manual/en/function.getdate.php |
| 1305 |
* @param timestamp int[optional] |
| 1306 |
* @return array an associative array of information related to |
| 1307 |
* the timestamp. Elements from the returned |
| 1308 |
* associative array are as follows: |
| 1309 |
* </p> |
| 1310 |
* <p> |
| 1311 |
* <table> |
| 1312 |
* Key elements of the returned associative array |
| 1313 |
* |
| 1314 |
* |
| 1315 |
* <tr valign="top"> |
| 1316 |
* <td>Key</td> |
| 1317 |
* <td>Description</td> |
| 1318 |
* <td>Example returned values</td> |
| 1319 |
* </tr> |
| 1320 |
* |
| 1321 |
* |
| 1322 |
* <tr valign="top"> |
| 1323 |
* <td>"seconds"</td> |
| 1324 |
* <td>Numeric representation of seconds</td> |
| 1325 |
* <td>0 to 59</td> |
| 1326 |
* </tr> |
| 1327 |
* <tr valign="top"> |
| 1328 |
* <td>"minutes"</td> |
| 1329 |
* <td>Numeric representation of minutes</td> |
| 1330 |
* <td>0 to 59</td> |
| 1331 |
* </tr> |
| 1332 |
* <tr valign="top"> |
| 1333 |
* <td>"hours"</td> |
| 1334 |
* <td>Numeric representation of hours</td> |
| 1335 |
* <td>0 to 23</td> |
| 1336 |
* </tr> |
| 1337 |
* <tr valign="top"> |
| 1338 |
* <td>"mday"</td> |
| 1339 |
* <td>Numeric representation of the day of the month</td> |
| 1340 |
* <td>1 to 31</td> |
| 1341 |
* </tr> |
| 1342 |
* <tr valign="top"> |
| 1343 |
* <td>"wday"</td> |
| 1344 |
* <td>Numeric representation of the day of the week</td> |
| 1345 |
* <td>0 (for Sunday) through 6 (for Saturday)</td> |
| 1346 |
* </tr> |
| 1347 |
* <tr valign="top"> |
| 1348 |
* <td>"mon"</td> |
| 1349 |
* <td>Numeric representation of a month</td> |
| 1350 |
* <td>1 through 12</td> |
| 1351 |
* </tr> |
| 1352 |
* <tr valign="top"> |
| 1353 |
* <td>"year"</td> |
| 1354 |
* <td>A full numeric representation of a year, 4 digits</td> |
| 1355 |
* <td>Examples: 1999 or 2003</td> |
| 1356 |
* </tr> |
| 1357 |
* <tr valign="top"> |
| 1358 |
* <td>"yday"</td> |
| 1359 |
* <td>Numeric representation of the day of the year</td> |
| 1360 |
* <td>0 through 365</td> |
| 1361 |
* </tr> |
| 1362 |
* <tr valign="top"> |
| 1363 |
* <td>"weekday"</td> |
| 1364 |
* <td>A full textual representation of the day of the week</td> |
| 1365 |
* <td>Sunday through Saturday</td> |
| 1366 |
* </tr> |
| 1367 |
* <tr valign="top"> |
| 1368 |
* <td>"month"</td> |
| 1369 |
* <td>A full textual representation of a month, such as January or March</td> |
| 1370 |
* <td>January through December</td> |
| 1371 |
* </tr> |
| 1372 |
* <tr valign="top"> |
| 1373 |
* <td>0</td> |
| 1374 |
* <td> |
| 1375 |
* Seconds since the Unix Epoch, similar to the values returned by |
| 1376 |
* time and used by date. |
| 1377 |
* </td> |
| 1378 |
* <td> |
| 1379 |
* System Dependent, typically -2147483648 through |
| 1380 |
* 2147483647. |
| 1381 |
* </td> |
| 1382 |
* </tr> |
| 1383 |
* |
| 1384 |
* |
| 1385 |
* </table> |
| 1386 |
*/ |
| 1387 |
function getdate ($timestamp = null) {} |
| 1388 |
|
| 1389 |
/** |
| 1390 |
* &Alias; <methodname>DateTime::__construct</methodname> |
| 1391 |
* @link http://www.php.net/manual/en/function.date-create.php |
| 1392 |
* @param time[optional] |
| 1393 |
* @param object[optional] |
| 1394 |
*/ |
| 1395 |
function date_create ($time, $object) {} |
| 1396 |
|
| 1397 |
/** |
| 1398 |
* &Alias; <methodname>DateTimeImmutable::__construct</methodname> |
| 1399 |
* @link http://www.php.net/manual/en/function.date-create-immutable.php |
| 1400 |
* @param time[optional] |
| 1401 |
* @param object[optional] |
| 1402 |
*/ |
| 1403 |
function date_create_immutable ($time, $object) {} |
| 1404 |
|
| 1405 |
/** |
| 1406 |
* &Alias; <methodname>DateTime::createFromFormat</methodname> |
| 1407 |
* @link http://www.php.net/manual/en/function.date-create-from-format.php |
| 1408 |
* @param format |
| 1409 |
* @param time |
| 1410 |
* @param object[optional] |
| 1411 |
*/ |
| 1412 |
function date_create_from_format ($format, $time, $object) {} |
| 1413 |
|
| 1414 |
/** |
| 1415 |
* &Alias; <methodname>DateTimeImmutable::createFromFormat</methodname> |
| 1416 |
* @link http://www.php.net/manual/en/function.date-create-immutable-from-format.php |
| 1417 |
* @param format |
| 1418 |
* @param time |
| 1419 |
* @param object[optional] |
| 1420 |
*/ |
| 1421 |
function date_create_immutable_from_format ($format, $time, $object) {} |
| 1422 |
|
| 1423 |
/** |
| 1424 |
* Returns associative array with detailed info about given date |
| 1425 |
* @link http://www.php.net/manual/en/function.date-parse.php |
| 1426 |
* @param date string <p> |
| 1427 |
* Date in format accepted by strtotime. |
| 1428 |
* </p> |
| 1429 |
* @return array array with information about the parsed date |
| 1430 |
* on success&return.falseforfailure;. |
| 1431 |
*/ |
| 1432 |
function date_parse ($date) {} |
| 1433 |
|
| 1434 |
/** |
| 1435 |
* Get info about given date formatted according to the specified format |
| 1436 |
* @link http://www.php.net/manual/en/function.date-parse-from-format.php |
| 1437 |
* @param format string <p> |
| 1438 |
* Format accepted by DateTime::createFromFormat. |
| 1439 |
* </p> |
| 1440 |
* @param date string <p> |
| 1441 |
* String representing the date. |
| 1442 |
* </p> |
| 1443 |
* @return array associative array with detailed info about given date. |
| 1444 |
*/ |
| 1445 |
function date_parse_from_format ($format, $date) {} |
| 1446 |
|
| 1447 |
/** |
| 1448 |
* &Alias; <methodname>DateTime::getLastErrors</methodname> |
| 1449 |
* @link http://www.php.net/manual/en/function.date-get-last-errors.php |
| 1450 |
*/ |
| 1451 |
function date_get_last_errors () {} |
| 1452 |
|
| 1453 |
/** |
| 1454 |
* &Alias; <methodname>DateTime::format</methodname> |
| 1455 |
* @link http://www.php.net/manual/en/function.date-format.php |
| 1456 |
* @param object |
| 1457 |
* @param format |
| 1458 |
*/ |
| 1459 |
function date_format ($object, $format) {} |
| 1460 |
|
| 1461 |
/** |
| 1462 |
* &Alias; <methodname>DateTime::modify</methodname> |
| 1463 |
* @link http://www.php.net/manual/en/function.date-modify.php |
| 1464 |
* @param object |
| 1465 |
* @param modify |
| 1466 |
*/ |
| 1467 |
function date_modify ($object, $modify) {} |
| 1468 |
|
| 1469 |
/** |
| 1470 |
* &Alias; <methodname>DateTime::add</methodname> |
| 1471 |
* @link http://www.php.net/manual/en/function.date-add.php |
| 1472 |
* @param object |
| 1473 |
* @param interval |
| 1474 |
*/ |
| 1475 |
function date_add ($object, $interval) {} |
| 1476 |
|
| 1477 |
/** |
| 1478 |
* &Alias; <methodname>DateTime::sub</methodname> |
| 1479 |
* @link http://www.php.net/manual/en/function.date-sub.php |
| 1480 |
* @param object |
| 1481 |
* @param interval |
| 1482 |
*/ |
| 1483 |
function date_sub ($object, $interval) {} |
| 1484 |
|
| 1485 |
/** |
| 1486 |
* &Alias; <methodname>DateTime::getTimezone</methodname> |
| 1487 |
* @link http://www.php.net/manual/en/function.date-timezone-get.php |
| 1488 |
* @param object |
| 1489 |
*/ |
| 1490 |
function date_timezone_get ($object) {} |
| 1491 |
|
| 1492 |
/** |
| 1493 |
* &Alias; <methodname>DateTime::setTimezone</methodname> |
| 1494 |
* @link http://www.php.net/manual/en/function.date-timezone-set.php |
| 1495 |
* @param object |
| 1496 |
* @param timezone |
| 1497 |
*/ |
| 1498 |
function date_timezone_set ($object, $timezone) {} |
| 1499 |
|
| 1500 |
/** |
| 1501 |
* &Alias; <methodname>DateTime::getOffset</methodname> |
| 1502 |
* @link http://www.php.net/manual/en/function.date-offset-get.php |
| 1503 |
* @param object |
| 1504 |
*/ |
| 1505 |
function date_offset_get ($object) {} |
| 1506 |
|
| 1507 |
/** |
| 1508 |
* &Alias; <methodname>DateTime::diff</methodname> |
| 1509 |
* @link http://www.php.net/manual/en/function.date-diff.php |
| 1510 |
* @param object |
| 1511 |
* @param object2 |
| 1512 |
* @param absolute[optional] |
| 1513 |
*/ |
| 1514 |
function date_diff ($object, $object2, $absolute) {} |
| 1515 |
|
| 1516 |
/** |
| 1517 |
* &Alias; <methodname>DateTime::setTime</methodname> |
| 1518 |
* @link http://www.php.net/manual/en/function.date-time-set.php |
| 1519 |
* @param object |
| 1520 |
* @param hour |
| 1521 |
* @param minute |
| 1522 |
* @param second[optional] |
| 1523 |
*/ |
| 1524 |
function date_time_set ($object, $hour, $minute, $second) {} |
| 1525 |
|
| 1526 |
/** |
| 1527 |
* &Alias; <methodname>DateTime::setDate</methodname> |
| 1528 |
* @link http://www.php.net/manual/en/function.date-date-set.php |
| 1529 |
* @param object |
| 1530 |
* @param year |
| 1531 |
* @param month |
| 1532 |
* @param day |
| 1533 |
*/ |
| 1534 |
function date_date_set ($object, $year, $month, $day) {} |
| 1535 |
|
| 1536 |
/** |
| 1537 |
* &Alias; <methodname>DateTime::setISODate</methodname> |
| 1538 |
* @link http://www.php.net/manual/en/function.date-isodate-set.php |
| 1539 |
* @param object |
| 1540 |
* @param year |
| 1541 |
* @param week |
| 1542 |
* @param day[optional] |
| 1543 |
*/ |
| 1544 |
function date_isodate_set ($object, $year, $week, $day) {} |
| 1545 |
|
| 1546 |
/** |
| 1547 |
* &Alias; <methodname>DateTime::setTimestamp</methodname> |
| 1548 |
* @link http://www.php.net/manual/en/function.date-timestamp-set.php |
| 1549 |
* @param object |
| 1550 |
* @param unixtimestamp |
| 1551 |
*/ |
| 1552 |
function date_timestamp_set ($object, $unixtimestamp) {} |
| 1553 |
|
| 1554 |
/** |
| 1555 |
* &Alias; <methodname>DateTime::getTimestamp</methodname> |
| 1556 |
* @link http://www.php.net/manual/en/function.date-timestamp-get.php |
| 1557 |
* @param object |
| 1558 |
*/ |
| 1559 |
function date_timestamp_get ($object) {} |
| 1560 |
|
| 1561 |
/** |
| 1562 |
* &Alias; <methodname>DateTimeZone::__construct</methodname> |
| 1563 |
* @link http://www.php.net/manual/en/function.timezone-open.php |
| 1564 |
* @param timezone |
| 1565 |
*/ |
| 1566 |
function timezone_open ($timezone) {} |
| 1567 |
|
| 1568 |
/** |
| 1569 |
* &Alias; <methodname>DateTimeZone::getName</methodname> |
| 1570 |
* @link http://www.php.net/manual/en/function.timezone-name-get.php |
| 1571 |
* @param object |
| 1572 |
*/ |
| 1573 |
function timezone_name_get ($object) {} |
| 1574 |
|
| 1575 |
/** |
| 1576 |
* Returns the timezone name from abbreviation |
| 1577 |
* @link http://www.php.net/manual/en/function.timezone-name-from-abbr.php |
| 1578 |
* @param abbr string <p> |
| 1579 |
* Time zone abbreviation. |
| 1580 |
* </p> |
| 1581 |
* @param gmtOffset int[optional] <p> |
| 1582 |
* Offset from GMT in seconds. Defaults to -1 which means that first found |
| 1583 |
* time zone corresponding to abbr is returned. |
| 1584 |
* Otherwise exact offset is searched and only if not found then the first |
| 1585 |
* time zone with any offset is returned. |
| 1586 |
* </p> |
| 1587 |
* @param isdst int[optional] <p> |
| 1588 |
* Daylight saving time indicator. Defaults to -1, which means that |
| 1589 |
* whether the time zone has daylight saving or not is not taken into |
| 1590 |
* consideration when searching. If this is set to 1, then the |
| 1591 |
* gmtOffset is assumed to be an offset with |
| 1592 |
* daylight saving in effect; if 0, then gmtOffset |
| 1593 |
* is assumed to be an offset without daylight saving in effect. If |
| 1594 |
* abbr doesn't exist then the time zone is |
| 1595 |
* searched solely by the gmtOffset and |
| 1596 |
* isdst. |
| 1597 |
* </p> |
| 1598 |
* @return string time zone name on success&return.falseforfailure;. |
| 1599 |
*/ |
| 1600 |
function timezone_name_from_abbr ($abbr, $gmtOffset = null, $isdst = null) {} |
| 1601 |
|
| 1602 |
/** |
| 1603 |
* &Alias; <methodname>DateTimeZone::getOffset</methodname> |
| 1604 |
* @link http://www.php.net/manual/en/function.timezone-offset-get.php |
| 1605 |
* @param object |
| 1606 |
* @param datetime |
| 1607 |
*/ |
| 1608 |
function timezone_offset_get ($object, $datetime) {} |
| 1609 |
|
| 1610 |
/** |
| 1611 |
* &Alias; <methodname>DateTimeZone::getTransitions</methodname> |
| 1612 |
* @link http://www.php.net/manual/en/function.timezone-transitions-get.php |
| 1613 |
* @param object |
| 1614 |
* @param timestamp_begin[optional] |
| 1615 |
* @param timestamp_end[optional] |
| 1616 |
*/ |
| 1617 |
function timezone_transitions_get ($object, $timestamp_begin, $timestamp_end) {} |
| 1618 |
|
| 1619 |
/** |
| 1620 |
* &Alias; <methodname>DateTimeZone::getLocation</methodname> |
| 1621 |
* @link http://www.php.net/manual/en/function.timezone-location-get.php |
| 1622 |
* @param object |
| 1623 |
*/ |
| 1624 |
function timezone_location_get ($object) {} |
| 1625 |
|
| 1626 |
/** |
| 1627 |
* &Alias; <methodname>DateTimeZone::listIdentifiers</methodname> |
| 1628 |
* @link http://www.php.net/manual/en/function.timezone-identifiers-list.php |
| 1629 |
* @param what[optional] |
| 1630 |
* @param country[optional] |
| 1631 |
*/ |
| 1632 |
function timezone_identifiers_list ($what, $country) {} |
| 1633 |
|
| 1634 |
/** |
| 1635 |
* &Alias; <methodname>DateTimeZone::listAbbreviations</methodname> |
| 1636 |
* @link http://www.php.net/manual/en/function.timezone-abbreviations-list.php |
| 1637 |
*/ |
| 1638 |
function timezone_abbreviations_list () {} |
| 1639 |
|
| 1640 |
/** |
| 1641 |
* Gets the version of the timezonedb |
| 1642 |
* @link http://www.php.net/manual/en/function.timezone-version-get.php |
| 1643 |
* @return string a string. |
| 1644 |
*/ |
| 1645 |
function timezone_version_get () {} |
| 1646 |
|
| 1647 |
/** |
| 1648 |
* &Alias; <methodname>DateInterval::createFromDateString</methodname> |
| 1649 |
* @link http://www.php.net/manual/en/function.date-interval-create-from-date-string.php |
| 1650 |
* @param time |
| 1651 |
*/ |
| 1652 |
function date_interval_create_from_date_string ($time) {} |
| 1653 |
|
| 1654 |
/** |
| 1655 |
* &Alias; <methodname>DateInterval::format</methodname> |
| 1656 |
* @link http://www.php.net/manual/en/function.date-interval-format.php |
| 1657 |
* @param object |
| 1658 |
* @param format |
| 1659 |
*/ |
| 1660 |
function date_interval_format ($object, $format) {} |
| 1661 |
|
| 1662 |
/** |
| 1663 |
* Sets the default timezone used by all date/time functions in a script |
| 1664 |
* @link http://www.php.net/manual/en/function.date-default-timezone-set.php |
| 1665 |
* @param timezone_identifier string <p> |
| 1666 |
* The timezone identifier, like UTC or |
| 1667 |
* Europe/Lisbon. The list of valid identifiers is |
| 1668 |
* available in the . |
| 1669 |
* </p> |
| 1670 |
* @return bool This function returns false if the |
| 1671 |
* timezone_identifier isn't valid, or true |
| 1672 |
* otherwise. |
| 1673 |
*/ |
| 1674 |
function date_default_timezone_set ($timezone_identifier) {} |
| 1675 |
|
| 1676 |
/** |
| 1677 |
* Gets the default timezone used by all date/time functions in a script |
| 1678 |
* @link http://www.php.net/manual/en/function.date-default-timezone-get.php |
| 1679 |
* @return string a string. |
| 1680 |
*/ |
| 1681 |
function date_default_timezone_get () {} |
| 1682 |
|
| 1683 |
/** |
| 1684 |
* Returns time of sunrise for a given day and location |
| 1685 |
* @link http://www.php.net/manual/en/function.date-sunrise.php |
| 1686 |
* @param timestamp int <p> |
| 1687 |
* The timestamp of the day from which the sunrise |
| 1688 |
* time is taken. |
| 1689 |
* </p> |
| 1690 |
* @param format int[optional] <p> |
| 1691 |
* <table> |
| 1692 |
* format constants |
| 1693 |
* |
| 1694 |
* |
| 1695 |
* <tr valign="top"> |
| 1696 |
* <td>constant</td> |
| 1697 |
* <td>description</td> |
| 1698 |
* <td>example</td> |
| 1699 |
* </tr> |
| 1700 |
* |
| 1701 |
* |
| 1702 |
* <tr valign="top"> |
| 1703 |
* <td>SUNFUNCS_RET_STRING</td> |
| 1704 |
* <td>returns the result as string</td> |
| 1705 |
* <td>16:46</td> |
| 1706 |
* </tr> |
| 1707 |
* <tr valign="top"> |
| 1708 |
* <td>SUNFUNCS_RET_DOUBLE</td> |
| 1709 |
* <td>returns the result as float</td> |
| 1710 |
* <td>16.78243132</td> |
| 1711 |
* </tr> |
| 1712 |
* <tr valign="top"> |
| 1713 |
* <td>SUNFUNCS_RET_TIMESTAMP</td> |
| 1714 |
* <td>returns the result as integer (timestamp)</td> |
| 1715 |
* <td>1095034606</td> |
| 1716 |
* </tr> |
| 1717 |
* |
| 1718 |
* |
| 1719 |
* </table> |
| 1720 |
* </p> |
| 1721 |
* @param latitude float[optional] <p> |
| 1722 |
* Defaults to North, pass in a negative value for South. |
| 1723 |
* See also: date.default_latitude |
| 1724 |
* </p> |
| 1725 |
* @param longitude float[optional] <p> |
| 1726 |
* Defaults to East, pass in a negative value for West. |
| 1727 |
* See also: date.default_longitude |
| 1728 |
* </p> |
| 1729 |
* @param zenith float[optional] <p> |
| 1730 |
* Default: date.sunrise_zenith |
| 1731 |
* </p> |
| 1732 |
* @param gmt_offset float[optional] |
| 1733 |
* @return mixed the sunrise time in a specified format on |
| 1734 |
* success&return.falseforfailure;. |
| 1735 |
*/ |
| 1736 |
function date_sunrise ($timestamp, $format = null, $latitude = null, $longitude = null, $zenith = null, $gmt_offset = null) {} |
| 1737 |
|
| 1738 |
/** |
| 1739 |
* Returns time of sunset for a given day and location |
| 1740 |
* @link http://www.php.net/manual/en/function.date-sunset.php |
| 1741 |
* @param timestamp int <p> |
| 1742 |
* The timestamp of the day from which the sunset |
| 1743 |
* time is taken. |
| 1744 |
* </p> |
| 1745 |
* @param format int[optional] <p> |
| 1746 |
* <table> |
| 1747 |
* format constants |
| 1748 |
* |
| 1749 |
* |
| 1750 |
* <tr valign="top"> |
| 1751 |
* <td>constant</td> |
| 1752 |
* <td>description</td> |
| 1753 |
* <td>example</td> |
| 1754 |
* </tr> |
| 1755 |
* |
| 1756 |
* |
| 1757 |
* <tr valign="top"> |
| 1758 |
* <td>SUNFUNCS_RET_STRING</td> |
| 1759 |
* <td>returns the result as string</td> |
| 1760 |
* <td>16:46</td> |
| 1761 |
* </tr> |
| 1762 |
* <tr valign="top"> |
| 1763 |
* <td>SUNFUNCS_RET_DOUBLE</td> |
| 1764 |
* <td>returns the result as float</td> |
| 1765 |
* <td>16.78243132</td> |
| 1766 |
* </tr> |
| 1767 |
* <tr valign="top"> |
| 1768 |
* <td>SUNFUNCS_RET_TIMESTAMP</td> |
| 1769 |
* <td>returns the result as integer (timestamp)</td> |
| 1770 |
* <td>1095034606</td> |
| 1771 |
* </tr> |
| 1772 |
* |
| 1773 |
* |
| 1774 |
* </table> |
| 1775 |
* </p> |
| 1776 |
* @param latitude float[optional] <p> |
| 1777 |
* Defaults to North, pass in a negative value for South. |
| 1778 |
* See also: date.default_latitude |
| 1779 |
* </p> |
| 1780 |
* @param longitude float[optional] <p> |
| 1781 |
* Defaults to East, pass in a negative value for West. |
| 1782 |
* See also: date.default_longitude |
| 1783 |
* </p> |
| 1784 |
* @param zenith float[optional] <p> |
| 1785 |
* Default: date.sunset_zenith |
| 1786 |
* </p> |
| 1787 |
* @param gmt_offset float[optional] |
| 1788 |
* @return mixed the sunset time in a specified format on |
| 1789 |
* success&return.falseforfailure;. |
| 1790 |
*/ |
| 1791 |
function date_sunset ($timestamp, $format = null, $latitude = null, $longitude = null, $zenith = null, $gmt_offset = null) {} |
| 1792 |
|
| 1793 |
/** |
| 1794 |
* Returns an array with information about sunset/sunrise and twilight begin/end |
| 1795 |
* @link http://www.php.net/manual/en/function.date-sun-info.php |
| 1796 |
* @param time int <p> |
| 1797 |
* Timestamp. |
| 1798 |
* </p> |
| 1799 |
* @param latitude float <p> |
| 1800 |
* Latitude in degrees. |
| 1801 |
* </p> |
| 1802 |
* @param longitude float <p> |
| 1803 |
* Longitude in degrees. |
| 1804 |
* </p> |
| 1805 |
* @return array array on success&return.falseforfailure;. |
| 1806 |
*/ |
| 1807 |
function date_sun_info ($time, $latitude, $longitude) {} |
| 1808 |
|
| 1809 |
define ('DATE_ATOM', "Y-m-d\TH:i:sP"); |
| 1810 |
define ('DATE_COOKIE', "l, d-M-Y H:i:s T"); |
| 1811 |
define ('DATE_ISO8601', "Y-m-d\TH:i:sO"); |
| 1812 |
define ('DATE_RFC822', "D, d M y H:i:s O"); |
| 1813 |
define ('DATE_RFC850', "l, d-M-y H:i:s T"); |
| 1814 |
define ('DATE_RFC1036', "D, d M y H:i:s O"); |
| 1815 |
define ('DATE_RFC1123', "D, d M Y H:i:s O"); |
| 1816 |
define ('DATE_RFC2822', "D, d M Y H:i:s O"); |
| 1817 |
define ('DATE_RFC3339', "Y-m-d\TH:i:sP"); |
| 1818 |
define ('DATE_RSS', "D, d M Y H:i:s O"); |
| 1819 |
define ('DATE_W3C', "Y-m-d\TH:i:sP"); |
| 1820 |
|
| 1821 |
/** |
| 1822 |
* Timestamp |
| 1823 |
* @link http://www.php.net/manual/en/datetime.constants.php |
| 1824 |
*/ |
| 1825 |
define ('SUNFUNCS_RET_TIMESTAMP', 0); |
| 1826 |
|
| 1827 |
/** |
| 1828 |
* Hours:minutes (example: 08:02) |
| 1829 |
* @link http://www.php.net/manual/en/datetime.constants.php |
| 1830 |
*/ |
| 1831 |
define ('SUNFUNCS_RET_STRING', 1); |
| 1832 |
|
| 1833 |
/** |
| 1834 |
* Hours as floating point number (example 8.75) |
| 1835 |
* @link http://www.php.net/manual/en/datetime.constants.php |
| 1836 |
*/ |
| 1837 |
define ('SUNFUNCS_RET_DOUBLE', 2); |
| 1838 |
|
| 1839 |
// End of date v.5.6.0 |
| 1840 |
?> |