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
|
Revision history for Perl extension DateTime::Format::Natural.
1.21 2025-05-18 <schubiger@cpan.org>
- Merged development version to stable.
1.20_01 2025-04-28 <schubiger@cpan.org>
- ::Duration::Checks: mark all subroutines as internal.
- Un-exclude Duration::Checks in pod{-coverage}.t.
1.20 2025-03-22 <schubiger@cpan.org>
- Document ::Duration::Checks.
1.19 2025-01-05 <schubiger@cpan.org>
- Merged development version to stable.
1.18_01 2025-01-04 <schubiger@cpan.org>
- Use List::Util instead of List::MoreUtils.
[github #22 - Graham Ollis]
1.18 2023-10-05 <schubiger@cpan.org>
- Merged development version to stable.
1.17_02 2023-10-03 <schubiger@cpan.org>
- Validate 'daytime' parameter.
1.17_01 2023-10-01 <schubiger@cpan.org>
- Minor wording tweak.
- Minor indentation tweak.
1.17 2023-06-20 <schubiger@cpan.org>
- Merged development version to stable.
- Minor tweak.
1.16_01 2023-06-18 <schubiger@cpan.org>
- Fix parse_datetime_duration doesn't understand hours
with no minutes, anymore. [github #19 - Giovanni Pensa]
1.16 2023-02-04 <schubiger@cpan.org>
- Merged development version to stable.
1.15_03 2023-02-03 <schubiger@cpan.org>
- Drop generating compat Makefile.PL.
1.15_02 2023-02-02 <schubiger@cpan.org>
- Remove implicit m/d format; adjust tests.
[github #11]
1.15_01 2023-01-27 <schubiger@cpan.org>
- Move further testing modules to test_requires.
[inspired by github #10 - Karen Etheridge]
1.15 2023-01-12 <schubiger@cpan.org>
- Merged development version to stable.
1.14_03 2023-01-10 <schubiger@cpan.org>
- Minor whitespace tweak.
1.14_02 2023-01-09 <schubiger@cpan.org>
- Move testing modules to test_requires.
[github #20 - Olaf Alders]
- List Jim Avera in credits.
1.14_01 2023-01-08 <schubiger@cpan.org>
- Fix extract_datetime fails with newly-created parser.
[rt #144219 - Jim Avera]
1.14 2022-12-30 <schubiger@cpan.org>
- Merged development version to stable.
1.13_02 2022-12-29 <schubiger@cpan.org>
- Distinguish between truncated/unaltered when testing.
1.13_01 2022-08-06 <schubiger@cpan.org>
- Add support for millisecond(s) as parsable unit.
1.13 2022-01-23 <schubiger@cpan.org>
- Merged development version to stable.
1.12_01 2022-01-20 <schubiger@cpan.org>
- Fix demand_future not working for method count_weekday.
[github #16 - joernclausen]
1.12 2021-03-19 <schubiger@cpan.org>
- Merged development version to stable.
1.11_03 2021-03-13 <schubiger@cpan.org>
- Refactor extracting duration.
- Don't try to trim the extract string twice.
- Amend documentation of ::Utils.
1.11_02 2020-10-16 <schubiger@cpan.org>
- Introduce utility function trim().
1.11_01 2020-10-03 <schubiger@cpan.org>
- Assert that error() returns '' on success.
1.11 2020-09-23 <schubiger@cpan.org>
- Merged development version to stable.
1.10_04 2020-09-22 <schubiger@cpan.org>
- Fail when parsing month/day with an explicit ymd-format.
1.10_03 2020-09-19 <schubiger@cpan.org>
- Clarify meaning of format option.
[rt #133200 - Ricardo Signes]
1.10_02 2020-09-05 <schubiger@cpan.org>
- Allow mm/dd and dd/mm as valid formats and amend tests.
- Improve format matching regexes.
- List example with new format under examples section.
1.10_01 2020-08-21 <schubiger@cpan.org>
- Allow configuration to make "8/10" mean October 8.
[rt #133140 - Ricardo Signes]
- Minor tweaks.
1.10 2020-06-26 <schubiger@cpan.org>
- Merged development version to stable.
1.09_01 2020-06-21 <schubiger@cpan.org>
- Support common unit abbreviations. [github #8 - grr]
1.09 2020-05-17 <schubiger@cpan.org>
- Merged development version to stable.
1.08_02 2020-05-01 <schubiger@cpan.org>
- Require Params::Validate >=1.15 to fix test failures with
older versions. [testers #112427415 - Alexandr Ciornii]
1.08_01 2020-04-17 <schubiger@cpan.org>
- Prefer the future even stronger with demand_future.
[rt #92189 - Ricardo Signes]
- When advancing to future times, consider also minutes/seconds.
1.08 2019-12-07 <schubiger@cpan.org>
- Merged development version to stable.
1.07_03 2019-12-06 <schubiger@cpan.org>
- New supported formats: <count> seconds/minutes before/after
yesterday/today/tomorrow. [github #6 - Felix Ostmann]
1.07_02 2019-11-19 <schubiger@cpan.org>
- New supported format: <count> hours before/after today.
[github #6 - Felix Ostmann]
1.07_01 2019-10-27 <schubiger@cpan.org>
- New supported formats: <count> <unit> before/after
noon/midnight. [github #6 - Felix Ostmann]
1.07 2019-03-29 <schubiger@cpan.org>
- Merged development version to stable.
1.06_01 2019-03-13 <schubiger@cpan.org>
- New supported format: <variant> quarter. [Xiao Yafeng]
1.06 2018-10-28 <schubiger@cpan.org>
- Merged development version to stable.
1.05_02 2018-10-27 <schubiger@cpan.org>
- Amend description of prefer_future option.
- Include the time zone when constructing DateTime objects
for the datetime option in dateparse.
- Minor tweaks to dateparse.
1.05_01 2018-10-25 <schubiger@cpan.org>
- Fix advancing to future when both datetime and prefer_future
options are provided.
1.05 2017-04-23 <schubiger@cpan.org>
- Merged development version to stable.
1.04_01 2017-03-03 <schubiger@cpan.org>
- New supported format: beginning/end of last month.
[rt #120436 - Shawn M. Moore]
1.04 2016-07-24 <schubiger@cpan.org>
- Merged development version to stable.
1.03_02 2016-07-15 <schubiger@cpan.org>
- Document format: ISO 8601 <date>T<time>.
- Amend introduction text for examples section.
- List Ricardo Signes in credits.
1.03_01 2016-07-09 <schubiger@cpan.org>
- New supported format: ISO 8601 <date>T<time>.
[rt #115737 - Ricardo Signes]
1.03 2015-08-02 <schubiger@cpan.org>
- Merged development version to stable.
1.02_03 2015-07-21 <schubiger@cpan.org>
- Suggestions for simple documentation improvements.
[rt #98634 - Tim Bunce]
1.02_02 2015-06-05 <schubiger@cpan.org>
- Add encoding directive to POD. [rt #105000 - Debian Perl Group]
1.02_01 2014-02-09 <schubiger@cpan.org>
- Add metadata repository link. [David Steinbrunner]
1.02 2013-04-30 <schubiger@cpan.org>
- Merged development version to stable.
1.01_05 2013-04-01 <schubiger@cpan.org>
- Parse and extract relative durations in reversed order.
- Document reversed relative durations under examples.
- Treat for <count> <unit> grammar expressions as durations.
- Refine gathering idents for from <count> to <count> durations.
- Use rightmost matching token on left side of duration as type.
- Split duration string only if accompanied by whitespace.
- Strengthen matching duration substrings against regexes.
- Extract regex captured punctuation marks in loop body.
- Undo some loop indentation in test files.
- Reorder version number variable in Calc class.
1.01_04 2013-01-17 <schubiger@cpan.org>
- Concatenate duration expression chunks with separator.
- Merge calls for extracting duration expressions.
- Distinguish between expression types when finalizing.
- Simplify finalizing date/grammar duration expressions.
- Test that expressions do not overlap with duration ones.
- Strip timespan separators from extract string.
- Normalize whitespace of duration expressions.
- Keep duration extract methods private.
- Don't declare a plan for extract-expression tests.
- Enhance comment in extract-expression test file.
1.01_03 2012-12-06 <schubiger@cpan.org>
- Fix fatal error from extract tests on 5.{8.9,10.0}.
- Display extracted strings for dateparse.
1.01_02 2012-11-29 <schubiger@cpan.org>
- Extract relative and rewritten duration expressions.
- Check parsing of extracted expressions.
1.01_01 2012-10-25 <schubiger@cpan.org>
- Narrow scope of variables in _extract_expressions().
- Improve finalizing duration expressions.
1.01 2012-09-07 <schubiger@cpan.org>
- Merged development version to stable.
1.00_02 2012-09-01 <schubiger@cpan.org>
- Duplicate and extend types only for grammar expansion.
- Initialize subscript variable.
- Remove trailing semicolon in do block.
1.00_01 2012-07-21 <schubiger@cpan.org>
- Extract expanded expressions and add a test.
1.00 2012-05-30 <schubiger@cpan.org>
- Merged development version to stable.
- Replace use of constant pragma with boolean.
0.99_01 2012-05-20 <schubiger@cpan.org>
- Introduce ::Expand which handles expanding grammar.
- Enhance main grammar loop to enable grammar expansion.
- Include count of tokens for expanded grammar in lookup map.
- Add test file for expansions.
- Make the truncate_to grammar option an array reference.
- Truncate values after each worker method called.
- Move truncating code to a separate method.
- Require Clone as prerequisite.
- Mention expansion of grammar in docs.
0.99 2012-04-26 <schubiger@cpan.org>
- Merged development version to stable.
0.98_03 2012-04-22 <schubiger@cpan.org>
- Check if daytime exists in _daytime_variant().
- Load modules in test files where missing.
0.98_02 2012-04-22 <schubiger@cpan.org>
- Add validation rules to allow passing DateTime::TimeZone
objects. [Roman Filippov]
- Test providing a DateTime::TimeZone object.
- Load DateTime::TimeZone explicitly.
- Test validation of constructor arguments.
- List Roman Filippov in credits.
0.98_01 2012-01-01 <schubiger@cpan.org>
- Mention and link to dateparse in the See also section.
0.98 2011-10-29 <schubiger@cpan.org>
- Merged development version to stable.
0.97_02 2011-10-27 <schubiger@cpan.org>
- Strip leading and trailing spaces from input strings.
0.97_01 2011-10-25 <schubiger@cpan.org>
- Support parsing timestamp. [Xiao Yafeng]
0.97 2011-08-17 <schubiger@cpan.org>
- Merged development version to stable.
0.96_04 2011-08-16 <schubiger@cpan.org>
- Check that the datetime string for dateparse has at most
two chunks (date/time); also require DateTime.
- Elaborate on the format of dateparse's datetime string.
0.96_03 2011-08-13 <schubiger@cpan.org>
- Add the datetime switch to dateparse and document it.
- Print dateparse's dates formatted according to ISO 8601.
0.96_02 2011-08-10 <schubiger@cpan.org>
- Revert truncating of <count> <unit> ago formats.
- Add Xiao Yafeng to credits.
0.96_01 2011-08-01 <schubiger@cpan.org>
- New supported format: today <count> <unit> ago. [Xiao Yafeng]
- Truncate for this and other ago formats to day if there is
no time component in order to produce more consistent results.
- Add new and adjust existing regular tests for these formats;
moreover, complete the list of parse failure tests.
- List the added grammar in the documentation.
0.96 2011-06-01 <schubiger@cpan.org>
- Merged development version to stable.
0.95_03 2011-05-30 <schubiger@cpan.org>
- Add the extract switch to dateparse and document it.
- Change dateparse's prefer_future option to be not negatable.
0.95_02 2011-05-28 <schubiger@cpan.org>
- Reorder the nested extract loop iterating through the grammar
entries to process only one subentry for all matching tokens.
- Move the check for a date when extracting expressions to a method.
- Add assert tests for extract_datetime(): one for the context
dependant return and another for the nested extract loop fix.
- Improve code visually of the parse success and failure test files.
0.95_01 2011-05-19 <schubiger@cpan.org>
- Do no longer recommend Test::Pod and Test::Pod::Coverage.
- Use quantifier which matches 1 or more times when extracting
subroutine or method names.
- Assign a list instead of pushing a string for time entries.
0.95 2011-05-14 <schubiger@cpan.org>
- Merged development version to stable.
0.94_04 2011-05-11 <schubiger@cpan.org>
- New supported format: <monthday> <month> <year> <time am/pm>.
[rt #67780 - Colm Dougan]
- Conditionally rewrite date strings, currently ones with an 'at'
followed by a time or daytime (e.g., noon).
- Place the rewrite data in the grammar class; add an accessor.
- Adapt the grammar by merging or removing now superfluous entries.
- Mention rewriting by use of a comment in the grammar class.
- Rewrite all patterns and refine handling punctuation marks
when extracting parsable expressions; add tests.
- Make generation of time entries for tests capable of processing
the {at} placeholder and use it within the test strings.
- Test parsing of date strings with rewritten time precision.
0.94_03 2011-05-03 <schubiger@cpan.org>
- Rename the aliases class to the more generic name rewrite.
- Parse times with AM/PM at word boundary separated by a space
(through removing the space before parsing).
[rt #67561 - Dave Rolsky]
- Purge now unused grammar entries and consolidate tests.
0.94_02 2011-04-14 <schubiger@cpan.org>
- Parse and document formatted dates with an abbreviated month name
in the middle; add a regular and a case related success test.
[rt #67395 - Rod Taylor]
- Extend the format regex accordingly and fix partly broken
checking for a formatted date boundary.
- Add assert tests for the fixed formatted date boundary check
and new month name validation.
0.94_01 2011-04-07 <schubiger@cpan.org>
- Rewrite aliases when extracting parsable expressions; amend
an extract test. [Colm Dougan]
- Add, test and document another weekday alias for thursday.
[Colm Dougan]
- Remove commas from date string now before rewriting aliases.
- Test that commas are filtered for aliases.
0.94 2011-04-02 <schubiger@cpan.org>
- Merged development version to stable.
0.93_02 2011-03-31 <schubiger@cpan.org>
- Set month and implicit day explicitly to avoid overlap parse
failures; add a regression test. [reported by Chifung Fan]
- Keep the minute or higher precision requirement when extracting
one token time expressions, but undo the grammar change.
- Test one token time expression with precision in hour.
- Use more descriptive variable names within the extract class.
0.93_01 2011-03-21 <schubiger@cpan.org>
- Introduce a class to extract parsable expressions from strings.
[suggested by Colm Dougan]
- Add and document the extract_datetime() method.
- Test extracting parsable expressions.
- Require precision in hour or higher for one token time expressions,
otherwise extracting expressions would be impeded.
- Move the formatted string regex to the grammar class;
furthermore, move the according checks to the formatted class.
0.93 2011-02-04 <schubiger@cpan.org>
- Merged development version to stable.
0.92_02 2011-01-25 <schubiger@cpan.org>
- New supported format: <month> <monthday>, <year> <time am/pm>.
[rt #65072 - Dave Rolsky]
- Sort weekdays and months metadata arrays in ascending order.
- Purge unused hour precisions from truncate_to grammar options.
0.92_01 2011-01-23 <schubiger@cpan.org>
- Place the constant.pm segmentation fault workaround comment
at the top of the grammar class.
0.92 2011-01-14 <schubiger@cpan.org>
- Merged development version to stable.
0.91_04 2011-01-12 <schubiger@cpan.org>
- Merge _daytime_in_the_variant() into _daytime().
- Document for times that precision in seconds may be applied.
0.91_03 2011-01-09 <schubiger@cpan.org>
- Allow for time regexes to match times with precision in seconds.
- Handle these times in _at_time() and adjust the according
post-processed truncate_to options within the grammar entries.
- Remove _time_full() and call _at_time() instead.
- Conditionally truncate to units and remove unit assignments of zero.
- When advancing to future time, omit checking for modified minute.
- Insert and process placeholders for test entries with variable units.
0.91_02 2010-12-07 <schubiger@cpan.org>
- New supported format: <weekday> <daytime>.
[rt #63438 - Tim Esselens]
- New supported format: <year> <month> <monthday>.
[rt #63429 - Rod Taylor]
- Rename the dayframe grammar keywords.
0.91_01 2010-12-06 <schubiger@cpan.org>
- Enhance parsing <token(s)> <count> combined relative durations; add
some regular tests and others for durations expected to succeed.
- Document the new supported kind of durations.
- Move the duration patterns and other metadata to the grammar
class and add a nested duration class with the duration checks.
- Invoke the duration checks through a function wrapper.
- Don't parse ambiguous <time>, <monthday> and <month> expressions.
- Shrink date strings in parse_datetime_duration() and fail;
reword documentation accordingly.
- Skip documentation tests for non-release testing.
- Test that parse_datetime_duration() shrinks and fails.
- Find module files and names for tests where necessary.
- Bundle common exportable test routines/data with a tag.
- Save the missing trace for present durations.
- Check with anchored regexp tokens in _advance_future().
0.91 2010-11-01 <schubiger@cpan.org>
- Merged development version to stable.
0.90_04 2010-10-30 <schubiger@cpan.org>
- New supported formats: <time> <month> <monthday> and
<time> AM/PM <month> <monthday>. [rt #62164 - Vladimir Marek]
- Add support for the <time am/pm> <month> <monthday> format.
- Test and document the new formats.
0.90_03 2010-10-28 <schubiger@cpan.org>
- New supported formats: <monthday> <month> <time>,
<monthday> <month> <time> AM/PM and <month> <monthday>
<time> AM/PM. [rt #62164 - Vladimir Marek]
- Add support for the <monthday> <month> <time am/pm> format.
- Test and document the new formats.
0.90_02 2010-10-22 <schubiger@cpan.org>
- New supported formats: <variant> <weekday> <time> AM/PM and
<time> AM/PM <variant> <weekday>. [rt #62164 - Vladimir Marek]
- Add support for the <variant> <weekday> <time am/pm> format.
- Test and document the new formats.
- Record the grammar keyword for each valid expression parsed.
- Describe trace()'s purpose and its inclusion of a grammar keyword.
- Insert expected grammar keywords in 14-trace.t.
0.90_01 2010-10-13 <schubiger@cpan.org>
- Fix reference to the Calc class in the documentation of trace().
- Adjust phrasing of parse_datetime_duration()'s documentation.
- Correct spelling of the examples description.
0.90 2010-10-04 <schubiger@cpan.org>
- Merged development version to stable.
0.89_02 2010-09-29 <schubiger@cpan.org>
- Create the metadata package name string through joining it.
- Provide a generated list of values to _Day_of_Week().
0.89_01 2010-09-21 <schubiger@cpan.org>
- Reword dateparse's help screen to be more descriptive.
- List Getopt::Long as prerequisite.
0.89 2010-08-05 <schubiger@cpan.org>
- Merged development version to stable.
0.88_02 2010-07-29 <schubiger@cpan.org>
- Replace calling of _valid_date() in _count_weekday_variant_month()
with _check_date(), because errors are handled separate.
- Use more descriptive variable names in _parse_formatted_ymd().
- Minor indentation and code tweaks.
0.88_01 2010-07-18 <schubiger@cpan.org>
- Check if suffixes used for ordinal numbers are suitable.
- Test that invalid ordinal numbers fail and valid ones succeed.
- Add a test file for the tests expected to succeed.
- Verify for parse failures their errors emitted.
- While processing grammar expressions, save all captured values
in order to pass the extra ones to the extended checks.
- Improve whitespace of regular expressions handling durations.
0.88 2010-06-16 <schubiger@cpan.org>
- Merged development version to stable.
0.87_03 2010-06-12 <schubiger@cpan.org>
- Fix broken use_ok() test for the Calc module.
- Insert some missing examples in the grammar documentation.
0.87_02 2010-06-09 <schubiger@cpan.org>
- Strengthen the check for invalid units of prefixed dates.
- Add a test file for parse asserts.
- Rename Base.pm to Calc.pm and adjust trace tests.
- Reword the according abstract and description.
- Document where arguments to dateparse's switches are required.
- Allow dateparse to handle the language code in uppercase.
0.87_01 2010-06-06 <schubiger@cpan.org>
- Match case-insensitively in the language option check.
- Require (and not use) the grammar class in runtime eval.
- Purge the remains of the formatted instance data member.
- Delete some instance data through hash slices.
- Convert a few non-option identifiers to lowercase.
0.87 2010-05-29 <schubiger@cpan.org>
- Merged development version to stable.
0.86_02 2010-05-27 <schubiger@cpan.org>
- Emit an error for 0 AM/PM suggesting to use 12 as zero.
- Add tests for this extended check failure.
- Adjust related prefer_future tests to make them pass.
- When verifying that extended checks fail, call _get_error()
to see whether it returns an error as expected.
- Reset in _unset_error() with undef instead of empty string.
0.86_01 2010-05-18 <schubiger@cpan.org>
- Introduce and use two flag handlers for AM/PM time values.
[rt #56955 - Andrew Sterling Hanenkamp]
- Assert that these values pass the extended meridiem check.
- Split implicit matching of time only from grammar entries
with an optional AM suffix.
- Add tests for 12 AM/PM and the splitted grammar entries
(including prefer_future ones).
- Test that invalid meridiem time values fail.
- Remove addition of 12 hours for PM time values in _at_time()
and _time_full().
- Dispatch to _at() for AM/PM time, to _time() for time only.
- Comment the purpose of the wrappers _at() and _time().
0.86 2010-04-20 <schubiger@cpan.org>
- Merged development version to stable.
0.85_02 2010-04-11 <schubiger@cpan.org>
- Extract both caller and sub in ::Lang::Base's AUTOLOAD() at once.
- Correct the indentation of the same subroutine.
0.85_01 2010-04-08 <schubiger@cpan.org>
- New supported format: <time full> AM/PM. [Wes Morgan]
- Make _time_full() capable of working with an hours option.
- Initialize the hours option in _at_time() after having processed
the arguments.
0.85 2010-03-13 <schubiger@cpan.org>
- Merged development version to stable.
0.84_03 2010-03-11 <schubiger@cpan.org>
- Resolve short aliases only if preceded by a digit.
- Don't capture the date separator for matching with the format.
0.84_02 2010-03-09 <schubiger@cpan.org>
- Guess the format of dates with a dot or hyphen as separator.
- Check for separator mismatch when not in lax mode.
0.84_01 2010-02-24 <schubiger@cpan.org>
- Use the format parameter case-insensitively and test it.
- Don't bless into a reference within the metadata base constructor.
- Add some missing commas to the grammar description.
0.84 2010-02-22 <schubiger@cpan.org>
- Merged development version to stable.
0.83_04 2010-02-16 <schubiger@cpan.org>
- Enhance the regular expression matching a non-word alias.
- Correct the indentation of _Nth_Weekday_of_Month_Year().
0.83_03 2010-02-14 <schubiger@cpan.org>
- Introduce short name aliases. [rt #53976 - Kevin Field]
- Support shortened relative dates with a +/- prefix.
[rt #53976 - Kevin Field]
- Add according tests for aliases and prefixed dates.
- Test for case-insensitive processing of input strings.
- Test compile-time loading of Aliases.pm.
0.83_02 Wed Jan 27 10:42:41 CET 2010
- New supported formats: <time> <weekday> and <time> on <weekday>.
[rt #53979 - Kevin Field]
0.83_01 Mon Jan 18 10:28:42 CET 2010
- Pass the time zone object instead of name to the final DateTime
constructor. [rt #53268 - Eric Wilhelm]
0.83 Wed Jan 13 15:51:11 CET 2010
- Merged development version to stable.
0.82_02 Wed Jan 6 10:57:43 CET 2010
- New supported format: M/D. [rt #53187 - Shawn M. Moore]
- Handle the new format with prefer-future semantics.
- Add tests for the new format and also for related durations.
- Document the new format and variations of it.
- Restrict counting of format separators to the formatted substring.
- Move the code processing formatted dates to a separate class.
- Fix the checking for an invalid format parameter.
- Complete <date> <time> to <time> type of durations.
- Split the duration string at word boundary of the separator.
- Restore the datetime object for each parse when running tests.
- Test compile-time loading of Formatted.pm.
0.82_01 Thu Dec 31 12:10:30 CET 2009
- Save the trace of each parse while processing a duration.
- Call for formatted dates the wrapper _set() instead of set()
in order to alter the modified counters.
- dateparse: when printing traces, print a trace for each object
returned.
- Add tests for the trace method and improve its documentation.
- Document possible bugs and caveats.
- Rename some variables with method name strings to be more
descriptive and also interpolate their strings initially.
- Substitute an expression for a block as used by 'map'.
0.82 Mon Dec 21 10:15:52 CET 2009
- Merged development version to stable.
0.81_04 Wed Dec 16 13:32:35 CET 2009
- dateparse: use the same class instance for each parse run;
match case-insensitively for commands that quit.
0.81_03 Fri Dec 11 10:32:08 CET 2009
- Use string interpolation instead of concatenation for symbolic
references in __new().
0.81_02 Wed Dec 9 20:07:19 CET 2009
- Reduce the common logic of _valid_date() and _valid_time()
by moving most of it to a method.
- Store the daytime option internally with a less nested name.
0.81_01 Mon Dec 7 11:14:19 CET 2009
- Place the common body of _add() and _subtract() in a single method.
- Comment the inverse use of _add() within _add_or_subtract().
- Set values at once within _check_time().
- Initialize tokens with an anonymous array reference.
- Purge last unneeded occurrence of 'scalar'.
0.81 Sat Nov 21 12:59:17 CET 2009
- Merged development version to stable.
0.80_02 Wed Nov 18 10:53:05 CET 2009
- Move utility and wrapper methods to separate classes.
- Test compile-time loading of Utils.pm and Wrappers.pm.
- Don't force explicit scalar context where an implicit one exists.
0.80_01 Mon Nov 2 10:59:46 CET 2009
- Invoke _valid_date() in _day_month_year() to assert the
validity of the date before setting it.
- Separate fixed time data for testing purpose from code.
0.80 Fri Oct 30 10:15:53 CET 2009
- Merged development version to stable.
0.79_02 Mon Oct 26 10:11:09 CET 2009
- Improve wording and formatting of the documentation.
- Update broken license links.
0.79_01 Mon Oct 19 13:30:14 CEST 2009
- Parse certain common variations of AM/PM or missing " at ".
[rt #50547 - Andrew Sterling Hanenkamp]
- Match case-insensitively for grammar regular expressions.
- Rename _at() to _at_time() and wrap it twice; dispatch to
_at() instead of _time() where suitable (and vice-versa).
- Sort the indexes metadata field in ascending order.
0.79 Sat Sep 19 12:23:20 CEST 2009
- Merged development version to stable.
0.78_03 Thu Sep 17 12:13:08 CEST 2009
- Relocate the formatted string printing of result strings
used within the tests to the Test class.
0.78_02 Mon Sep 14 17:18:40 CEST 2009
- Add support for ranges representing the first and last day
of a month or year. [rt #44067 - Michael Reddick]
- Move the insertion code in parse_datetime_duration() to the
Duration class and the checks to the english metadata class.
- Quote for parsing failures with duration strings the entire
input string instead of a partial date string.
- Save and restore state for parse_datetime_duration().
- Test compile-time loading of Duration.pm.
0.78_01 Tue Sep 1 15:51:59 CEST 2009
- Set units at once within _check_date() when Date::Calc is
not available and add a test. [rt #49326 - Clayton L. Scott]
0.78 Fri Aug 7 11:32:31 CEST 2009
- Merged development version to stable.
0.77_01 Thu Jun 25 16:00:27 CEST 2009
- Add a handful of new formats. [rt #43468 - Clayton L. Scott]
- Don't eventually try to guess the century.
- Introduce and use a class for common test routines.
- Test compile-time loading of Test.pm.
- Rename the misnamed 'hour' metadata option to 'hours'.
- _daytime() does not use the 'hours' metadata option when
it is set and hence remove such existing entries.
- For base methods which use the 'hours' metadata option,
assume a zero when no value is provided.
0.77 Sun Jun 14 20:46:53 CEST 2009
- Merged development version to stable.
0.76_04 Sat Jun 13 14:04:21 CEST 2009
- Remove comment in code about the legacy debug option.
- Use '\s+' instead of the ambiguous ' ' as token split pattern.
- Add some whitespace to the regexp which recognizes additional
tokens for formatted dates.
0.76_03 Wed Jun 10 11:50:42 CEST 2009
- The current "now" can be overridden through the 'datetime'
option. [rt #45127 - Giovanni Pensa]
- parse_datetime_duration() handles durations where the second
part is relative to the first one. [rt #45127 - Giovanni Pensa]
- New supported relative duration: for <count> <unit>.
[rt #45127 - Giovanni Pensa]
0.76_02 Sat Jun 6 13:24:58 CEST 2009
- When using prefer_future, also allow for weekdays combined with
the time of day to be parsed correctly. [rt #46689 - Jason May]
- New supported format: <weekday> <time>. [rt #46689 - Jason May]
0.76_01 Mon Jun 1 21:34:06 CEST 2009
- Change in default behavior: Use DateTime's truncate method
to reset time components. Inspired by [rt #43468 - Clayton
L. Scott] and suggestions from others.
0.76 Thu Apr 9 12:08:32 CEST 2009
- Merged development version to stable.
0.75_05 Mon Apr 6 12:42:26 CEST 2009
- New supported format: final <weekday> in <month>.
[rt #44810 - Christian Brink]
- Wrap Days_in_Month() in Compat.pm.
0.75_04 Fri Apr 3 15:13:36 CEST 2009
- New supported formats: some suggested by [rt #44067 - Michael
Reddick], while others have been independently added.
- Fix a regression [rt #44691 - Jason May].
- Shift common conversion logic within base calculation methods
to the grammar class.
- Introduce a helper class for handling actions related to
metadata flags and to serve as container for setter/checker
methods.
- Wrap Decode_Month() in Compat.pm.
- Test both implementations within each method in Compat.pm.
- Preserve order of tests.
- Add a test-file for regressions.
- Remove the obsoleted internal use of a total-modified counter.
0.75_03 Wed Mar 4 13:39:08 CET 2009
- Enhance the extended checks mechanism further to have it set
an error message when a check fails.
- Run tests without sorting the input strings first.
- Test compile-time loading of Compat.pm.
0.75_02 Thu Feb 26 11:01:11 CET 2009
- Date::Calc is no longer a prerequisite; use it when available
for calculations, otherwise fall back to using DateTime.
[rt #43521 - Jesse Vincent <jesse@bestpractical.com>]
0.75_01 Sun Feb 22 12:09:32 CET 2009
- When prefer_future is set: Advance the day if the time
specified is noticeable in the past. [rt #43417 - Jason May]
- New supported format: <month> <monthday> <year>.
[rt #43467 - Clayton L. Scott <clscott@cpan.org>]
0.75 Thu Feb 19 16:50:19 CET 2009
- Merged development version to stable.
0.74_04 Son Feb 15 20:59:28 CET 2009
- Refrain from adding leading zeros to unit values via
sprintf() when constructing the final DateTime object.
- Do not import Date_to_Days(), it's no longer required.
0.74_03 Fri Feb 13 13:15:11 CET 2009
- Guard against invalid expressions with a 's' suffix,
but no multiple unit count.
- Work around the segmentation fault taking place in 0.74_02
on perl 5.8.9 and 5.10.0.
0.74_02 Sun Feb 8 11:47:50 CET 2009
- New supported format: <count> <weekday>(s) from now.
[rt #43088 - Anirvan Chatterjee]
- Add a new field to the language grammar entries to handle
extended checks of captured regex data.
0.74_01 Thu Jan 8 16:06:17 CET 2009
- When a four digit year is found, also allow for mm/dd/yyyy
kind of formats. [Elliot Shank <perl@galumph.com>]
0.74 Sat Dec 20 15:06:50 CET 2008
- Merged development version to stable.
0.73_04 Sun Nov 30 12:27:26 CET 2008
- Be more exact with english time matching regular expressions,
which fixes [rt #41266 - Alex Bowley] partly.
- The date and time validation methods do now honor all their
arguments; this reduces the amount of false errors.
- Wrap the code calling Nth_Weekday_of_Month_Year() in eval
blocks to catch errors and add some code to act upon the results.
- Do not call the setter method multiple times if the values can
be set at once.
0.73_03 Thu Nov 13 21:20:53 CET 2008
- Move some duplicated logic to helper methods.
- Do not save intermediate data when generating the trace output.
- Use the proper data structure name in parse_datetime_duration().
0.73_02 Sun Nov 2 21:40:31 CET 2008
- The grammar parser now, for each run, only iterates through
entries with an according count of fields.
0.73_01 Sat Oct 18 22:21:56 CEST 2008
- Corrected a few typos in the main documentation and also
reworded some bits.
0.73 Thu Sep 4 19:53:44 CEST 2008
- Fixed the 'prefer_future' parameter validation error by
extending its type definition.
- Merged development version to stable.
0.72_02 Thu Sep 4 11:06:36 CEST 2008
- Use the "boolean" pragma for true/false values.
0.72_01 Sun Aug 31 12:33:53 CEST 2008
- Adjusted the dispatch entries for exact non-formatted dates
and introduced an according method to avoid false errors.
[rt #38857 - Ankur Gupta <ankur655@gmail.com>]
- Call DateTime's set method for exact formatted dates once
instead of setting each unit separately.
- Changed the parser to handle internal value positions (i.e.,
data related to tokens) with more respect when encountering
lists with a sequence that differs from a truly ascending one.
0.72 Sat Aug 16 13:39:27 CEST 2008
- When referring within classes to themselves, use the proper
term "class" instead of "module".
- Merged development version to stable.
0.71_04 Thu Aug 7 11:28:36 CEST 2008
- Call validation_options() when DateTime::Format::Natural
gets loaded (instead of relying on it to be called from
within a method).
0.71_03 Sun Aug 3 11:06:09 CEST 2008
- Declared some more expected types when validating arguments
with Params::Validate.
0.71_02 Fri Aug 1 13:54:02 CEST 2008
- Moved some duplicated code fragments within the main base class
to separate methods.
0.71_01 Wed Jul 30 22:15:49 CEST 2008
- Added time_zone parameter support to 'dateparse' and a shortcut
to leave it quickly.
0.71 Thu Jun 12 11:17:22 CEST 2008
- When processing "date abbreviations" call Date::Calc's check_date()
instead of calling _valid_date() thrice, which could cause bogus
error messages. [Pat Kale <kale1@llnl.gov>]
0.70 Mon Apr 7 20:29:39 CEST 2008
- Fixed 'dateparse' failures which were introduced along with
Params::Validate.
- Added missing trace calls to _day_today(), _day_yesterday()
and _day_tomorrow().
0.69 Sat Mar 15 13:44:03 CET 2008
- Validation of arguments is now handled by Params::Validate.
0.68_01 Thu Mar 13 22:13:26 CET 2008
- Undo for trailing newlines to be printed when initially
checking the arguments for validity and some invalid ones are
encountered. Furthermore, add quoting to the error message.
0.68 Sun Feb 17 14:19:07 CET 2008
- Added 'prefer_future' test-file.
- Added Test::MockTime to the dependency list in Build.PL.
- Restructured documentation.
0.67 Fri Feb 8 01:04:38 CET 2008
- Extended parser to accept a formatted date and time string.
[suggested by Shawn M. Moore <sartak@gmail.com>]
0.66 Tue Jan 15 12:04:06 CET 2008
- Merged development version to stable.
0.65_01 Tue Jan 8 14:13:18 CET 2008
- Convey less filename information for all test-files (removed
'en' suffixes), because they needlessly clutter the test output.
Considering that the grammar is pluggable, we could still move language
specific tests into subdirs, once multiple language grammars should be
implemented.
0.65 Fri Dec 28 18:49:40 CET 2007
- Localized $_ while constructing the format separator.
[rt #31968 - Shawn M. Moore <sartak@gmail.com>]
0.64 Mon Dec 24 16:19:37 CET 2007
- Improved the options parsing within scripts/dateparse (by
introducing a subroutine to set default values independently).
0.63 Thu Dec 20 15:50:07 CET 2007
- Merged development version to stable.
- Renamed time_zone test-file (added 'en' suffix).
0.62_03 Thu Dec 13 20:53:11 CET 2007
- Replaced remaining tabs within the entire source with
regular spaces (4).
0.62_02 Thu Dec 13 12:12:06 CET 2007
- Localized $1 within the grammar parser (i.e., the method _process())
before examining whether a regular expression succeeded and if it did,
check whether it did capture some content and save it on the "regex-stack".
- Enhanced the diagnostic printed when faulty grammar types are encountered.
- Changed a type definition from 'SCALAR' to 'REGEXP' within EN.pm.
0.62_01 Tue Dec 11 13:28:31 CET 2007
- No "functional" changes, merely "cosmetic" ones.
0.62 Mon Dec 3 21:06:05 CET 2007
- Added support for abbreviated week-/monthnames when 'prefer_future'
option is enabled. [rt #31254 - Shawn M. Moore <sartak@gmail.com>]
- Deprecated export of subs within Lang/Base.pm to Lang/EN.pm
(the ISA relationship is sufficient).
0.61 Sat Nov 24 10:32:31 CET 2007
- Improved code efficiency a bit & removed some dead code.
0.60 Tue Nov 20 16:59:24 CET 2007
- Implemented better timezone handling and added according tests.
[rt #30765 - Shawn M. Moore <sartak@gmail.com>]
0.59 Thu Nov 15 23:54:25 CET 2007
- Made the 'prefer_future' parameter a bit more context-sensitive
with regard to incremental of the current year.
[rt #30763 - Shawn M. Moore <sartak@gmail.com>]
- Updated the "SEE ALSO" sections within the documentation
to refer back to the main package.
0.58 Thu Nov 1 19:54:41 CET 2007
- Deprecated broken 'debug' parameter to parse_datetime*().
- Fixed some parameters within scripts/dateparse which were
erroneously declarated.
0.57 Thu Oct 25 21:21:56 CEST 2007
- Added tests for durations (i.e., the method parse_datetime_duration()).
0.56 Sat Oct 20 20:02:24 CEST 2007
- Extended grammar to reflect some suggestions.
[rt #30147 - Jason May <jason.a.may@gmail.com>]
0.55 Wed Oct 17 15:24:25 CEST 2007
- Changed behavior of the 'prefer_future' option concerning weekdays.
[rt #29068 - Jesse Vincent <jesse@bestpractical.com>]
0.54 Fri Oct 5 23:30:28 CEST 2007
- Added Term::ReadLine support to 'dateparse'.
- Updated t/* to ensure that all results are being marked successful.
- Fixed formatted dates, which never succeeded previously.
0.53 Sun Sep 30 13:55:11 CEST 2007
- Added grammar definitions & according tests for "[day] at [daytime]".
- Internally documented the grammar layout.
- Replaced %s with %d for sprintf() format-strings.
[Jonny Schulz <http://www.bloonix.de>]
0.52 Sat Sep 29 17:02:40 CEST 2007
- Removed all mentions of german language support within the
documentation and the code.
- Extended documentation to explain the grammar a bit.
0.51 Thu Sep 27 17:12:49 CEST 2007
- Removed no longer necessary 'use_ok()' test for the german language
metadata. [rt #29651 - Andreas J. Knig <andreas.koenig@anima.de>]
0.50 Thu Sep 27 00:39:08 CEST 2007
- Major redo of flexible language metadata handling.
0.40 Sun Sep 23 17:34:48 CEST 2007
- Empty the marked tokens list on each instance of parse_datetime()/
parse_datetime_duration().
0.39 Sun Sep 9 00:41:30 CEST 2007
- Improved handling of dates when no format-string was provided
or was unsuitable. [rt #29227 - Shawn M. Moore <sartak@gmail.com>]
- Implemented mechanisms to mark tokens when processed and added
an according getter method for multiple tokens.
0.38_01 Tue Sep 4 18:10:48 CEST 2007
- Undone use'ing constant with a hashref provided (breaks on
older versions of Perl [testers #598724 - David Cantrell <david@cantrell.co.uk>]).
0.38 Wed Aug 29 22:07:00 CEST 2007
- Redone code formatting.
0.37 Sun Aug 19 11:33:05 CEST 2007
- Fixed the parsing of unambigious dates such as "next [month]" &
"last [month]" while the 'prefer_future' option is enabled.
- Explicitly call methods within the superclass with 'SUPER::'.
- Documented the 'prefer_future' switch in scripts/dateparse.
0.36 Thu Jun 7 13:42:35 CEST 2007
- Fixed version numbers which were treated as floating point numbers,
not as v-string. [rt #27350 - Andres J. Knig <andreas.koenig@anima.de>]
- Fixed _set_datetime() which failed whenever a 31st day didn't exist
in the current month. [rt #27360 - Chia-liang Kao <clkao@clkao.org>]
- Reversed the order of the day/month/year setter calls within
parse_datetime(). [mike <pulsation@gmail.com>]
- Added a 'prefer_future' option to turn ambigious weekdays/months
to their futuristic equivalents - implemented by counting how often
an unit was being modified by the appropriate setter call within the
Base class. [Shawn M. Moore <sartak@gmail.com>]
- Extended the test-suite to include more exhaustive tests and accordingly
updated the EXAMPLES in the language metadata classes.
- Introduced the public method trace() which will show which methods were
called within the Base class and how often certain units were modified
by according Datetime setter calls.
0.35 Wed May 23 21:00:39 CEST 2007
- Implemented next [monthname] & last [monthname] parsing and
added according tests. [Shawn M. Moore <sartak@gmail.com>]
- Added tests for the constant daytime values.
- Albeit it's unlikely that someone will ever subclass Lang/Base.pm,
a bug in the statement involving bless() within the constructor has
been fixed (ref($class) 'check' must come first, otherwise subclassing
is impossible).
- scripts/dateparse is now being installed.
0.34 Sun May 20 17:09:09 CEST 2007
- Hopefully fixed "Type of arg 1 to List::MoreUtils::any must be block
or sub {} (not list)" errors.
- Added _init_check() which is being called by _init() to validate
the options passed to the constructor new().
0.33 Sat May 19 03:08:29 CEST 2007
- Got mostly rid of the "no warnings 'uninitialized'" statements and
ensured that no undefined values will be encountered by introducing
an according token accessor which will return either a reference to
an existing token or to a defined string (in case a token does not
yield any defined value).
- Disallowed 'am/pm' for german language metadata since they're
not known to a native german speaker assuming it is referred
to the german language itself. [Urs Stotz <stotz@gmx.ch]
- Introduced two methods, success() and error(). Former indicates
whether the parsing of a date/time string succeeded or not; latter
provides the error string if former one should fail. Furthermore,
the entire system is now reliant upon both of them and doesn't
croak any longer if parsing should fail.
- Added according getter/setter/unsetter accessors for the internal
error and failure attributes.
0.32 Thu May 10 23:52:00 CEST 2007
- Replaced some conditional variables with early return statements.
- Introcuded Date::Calc's check_date() and check_time() to assure
for integrity of date/time values submitted to according setter
methods.
- Wrapped check_date() and check_time() in subs which croak upon
error and supply the type of value and the actual value in the
message delivered to the caller, otherwise return true.
- Separated datetime_parse_duration() logic from datetime_parse()
and added according documentation [Cory Watson <jheephat@gmail.com>]
0.31 Sun May 6 02:57:13 CEST 2007
- Replaced undef on hash elements within Natural/Base.pm with delete.
- Changed 'time_zone' parameter's value in calls to DateTime->now()
with 'floating' instead of 'local'. This should function as fix
to failures reported on MSWin & Cygwin platforms according to
[Dave Rolsky <urth@autarch.org>].
- Due to an unlocalized signal warning handler, uninitialized
warnings in code which either required/use'd DateTime::Format::Natural
were being supressed. The handler has been commented out (and left in
for debugging/development purpose) and replaced by an according
'no warnings' statements in both Natural.pm & Natural/Base.pm.
0.30 Sun Apr 29 02:33:16 CEST 2007
- Fixed some spurious date results assumptions in t/01-parse_en.t
and t/02-parse_de.t which were caused by a bug.
- Extended documentation to include options pertaining to method
calls within the documentation in listed form.
- Added functionality to change the default values for specific
daytimes. Furthermore, according testcases have been added.
0.29 Mon Apr 16 22:00:27 CEST 2007
- Support for parsing seconds and minutes in ago stanzas
[Tuomas Jormola <tj@solitudo.net>]
- Added according testcases to the testsuite for parsing
seconds and minutes in ago stanzas.
- Modified scripts/dateparse.pl to return a absolute time
with precision in seconds.
0.28 Wed Apr 11 01:44:49 CEST 2007
- Moved timespan separator definition to language metadata
base classes.
- scripts/dateparse.pl language chosen always defaulted
to 'en' irrespective whether another one has been chosen
or not. Changed it to only fallback to the default language
('en') if no other one has been provided.
- Added t/03-parse_format.t to the testsuite which tests datestrings
with various differing format strings.
0.27 Tue Apr 10 22:19:15 CEST 2007
- Mentioning Tatsuhiko Miyagawa as the inspiration source in
the documentation's Credits section.
- Implemented a simple timespan calculation, provided the natural
dates are separated by the literal token 'to' (case-insensitive).
[Mark Stosberg <mark@summersault.com>]
0.26 Wed Mar 14 13:15:07 CET 2007
- The constructor accepts now an optional 'format' parameter specifying
in which format numeric dates should be parsed (either / or - may be
used to separate the units). [mike <pulsation@gmail.com>]
0.25 Sun Mar 11 23:02:45 CET 2007
- Separated the logic within parse_datetime() to _process()
and according internal subroutines.
- Commented the majority of functions within Base.pm.
- Introduced List::MoreUtils' any() & none() functions;
deprecated use of 'no warnings' statement which need
arose by accessing indexes of @{$self->{tokens}} where
no members were present.
- Created TODO file with pending items.
0.24 Wed Jan 17 22:51:51 CET 2007
- Introduced a warning handler to silence the warnings about
undefined values when pattern matching, subtracting and
performing string comparisons in Natural/Base.pm.
- Merged the "frontend" scripts to a single one taking
optionally a language argument indicating the country
code among other arguments.
- Made 01-parse_en.t's & 02-parse_de.t's code more readable
by adding some more separating lines.
- Moved 'our' declarations in DE.pm & EN.pm towards the top.
0.23 Tue Jan 16 19:51:50 CET 2007
- The language metadata classes have an AUTOLOAD handler & __new
constructor automatically exported to their namespaces. Because
some local fiddling with AUTOLOAD and dynamic variable lookup is
done, a bunch of symbolic references are created on-the-fly.
0.22 Tue Jan 16 02:58:15 CET 2007
- Previously four digits were occasionally interpreted as year
and as well as time based upon context. Disambiguated usage
as year (applies to all Lang:: classes) and fixed all test
cases were bogus return values from parse_datetime() have
been expected in order to have no tests fail.
- Bound the temporary disablement of strictness for references
to a tighter scope (applies to all Lang:: classes).
0.21 Tue Nov 28 09:31:20 CET 2006
- Corrected the classes names provided to use_ok() in 00-load.t.
[SEKIMURA sekimura@gmail.com]
0.20 Tue Nov 28 01:44:46 CET 2006
- Optimised the regular expressions used in the AUTOLOAD routine
in the language classes.
0.19 Mon Nov 27 20:06:17 CET 2006
- Added to DE.pm & EN.pm an AUTOLOAD handler for each of them.
The subroutine called prefixed with two underscores will be
translated to an according variable name without underscores.
The parameter to the subroutine will function as variable
lookup key.
0.18 Sun Nov 26 17:35:17 CET 2006
- Fixed all occurences of the global weekday hash by adding the
missing key "{data}" to the variable lookup.
0.17 Sun Nov 26 16:50:14 CET 2006
- Encapsulated the metadata within the language packages in an
object which class gets subclassed from Natural.pm.
[Tatsuhiko Miyagawa <miyagawa@gmail.com>]
0.16 Sat Nov 25 18:09:48 CET 2006
- Added missing '1;' to the documentation of Authoring.pod.
- Changed strings in Authoring.pod to be italic.
- The testsuite now contains a german aquivalent of the english
parsing test.
0.15 Sam Nov 25 16:49:22 CET 2006
- Added DateTime::Format::Natural::Lang::Authoring documentation.
0.14 Sat Nov 25 14:34:33 CET 2006
- Corrected broken package definition.
0.13 Sat Nov 25 04:14:54 CET 2006
- Separated data from logic by keeping all regular expressions in
separate packages.
- Language support for german has been included.
0.12 Fri Nov 24 20:36:37 CET 2006
- Added some basic tests to the testsuite which exercice
converting natural format strings to an according datetime object.
- Enhanced the collection of valid strings that are translated.
0.11 Fri Nov 24 02:15:30 CET 2006
- Refactored the code where duplicated chunks were available.
- Evaluated whether the current listed expressions pass the parsing.
0.10 Thu Nov 23 01:14:44 CET 2006
- Substituted additions/subtractions where possible with the
appropriate DateTime method calls.
- An Exception is thrown if no valid input has been given.
[Tatsuhiko Miyagawa <miyagawa@gmail.com>]
0.09 Sun Nov 19 14:38:24 CET 2006
- Date strings with slashes are now being split and assigned
to the appropriate variables.
- Moved the initialization of object data into a sub.
Same procedure for the code chunk returning a datetime object.
0.08 Sun Nov 19 12:30:24 CET 2006
- Code is now object-oriented.
0.07 Sat Oct 28 17:16:53 CEST 2006
- Replaced all tabs in EN.pm with regular spaces (4).
0.06 Wed Oct 25 20:24:38 CEST 2006
- Substituted exporting functions with an object-oriented constructor.
parse_datetime() is now called as a method.
[Dave Rolsky <urth@autarch.org>]
- parse_datetime() takes either a datestring or an options hash.
[Dave Rolsky <urth@autarch.org>]
0.05 Wed Oct 25 11:27:26 CEST 2006
- Moved from namespace DateTime::Natural::Parse to DateTime::From::Natural::EN
[Dave Rolsky <urth@autarch.org>]
- Renamed natural_parse() to parse_datestring().
0.04 Wed Oct 25 00:17:01 CEST 2006
- Updated the code to process some "complex" input.
- Actualized the documentation accordingly.
0.03 Tue Oct 24 01:25:03 CEST 2006
- Appended the i(ncasesensitive) Modifier to a few regular expressions.
- Fixed the broken newlines for the example documentation.
0.02 Mon Oct 23 23:22:41 CEST 2006
- DateTime has been added to the dependencies list.
- natural_parse() returns a DateTime object [Clayton L. Scott <clscott@cpan.org>]
- Extended documentation to include some example human readable time strings.
0.01 Sun Oct 22 22:15:54 CEST 2006
- Initial version.
|