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