/usr/share/doc/libucommon-dev/a00045.html is in libucommon-doc 3.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucc::Date Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00045.html">Date</a>
</div>
</div>
<div class="contents">
<h1>ucc::Date Class Reference</h1><!-- doxytag: class="ucc::Date" -->
<p>The <a class="el" href="a00045.html" title="The Date class uses a julian date representation of the current year, month, and...">Date</a> class uses a julian date representation of the current year, month, and day.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="a00191_source.html">datetime.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for ucc::Date:</div>
<div class="dynsection">
<div class="center"><img src="a00380.png" border="0" usemap="#ucc_1_1_date_inherit__map" alt="Inheritance graph"/></div>
<map name="ucc_1_1_date_inherit__map" id="ucc_1_1_date_inherit__map">
<area shape="rect" id="node3" href="a00046.html" title="A number class that manipulates a string buffer that is also a date." alt="" coords="5,83,139,112"/><area shape="rect" id="node5" href="a00047.html" title="The Datetime class uses a julian date representation of the current year, month,..." alt="" coords="163,83,277,112"/><area shape="rect" id="node7" href="a00048.html" title="A DateTime string class." alt="" coords="144,160,296,189"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#af6a394e61b3f83f67adea4d859272d71">index_t</a> { <b>year</b> = 10,
<b>month</b>,
<b>day</b>,
<b>dow</b>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><p>index elements. </p>
<br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a724b3bf0d975e2348ebb63c0b7845254"></a><!-- doxytag: member="ucc::Date::Date" ref="a724b3bf0d975e2348ebb63c0b7845254" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a724b3bf0d975e2348ebb63c0b7845254">Date</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a new julian date with today's date. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a177877759a2bbf3e38426fee2b8b4cba">Date</a> (const <a class="el" href="a00045.html">Date</a> &object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a julian date object from another object. <a href="#a177877759a2bbf3e38426fee2b8b4cba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a1d908ca7d26e012bdb4808e2464143c7">Date</a> (int year, unsigned month=1, unsigned day=1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a julian date from an arbitrary year, month, and day. <a href="#a1d908ca7d26e012bdb4808e2464143c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a118ad600d9e1341fa9b9362f987e67a9">Date</a> (const char *<a class="el" href="a00015.html">pointer</a>, size_t size=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a julian date from a ISO date string of a specified size. <a href="#a118ad600d9e1341fa9b9362f987e67a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ab2b4340ddb5775192236dba6cb2d085c">Date</a> (struct tm *object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a julian date from a local or gmt date and time. <a href="#ab2b4340ddb5775192236dba6cb2d085c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#acc503a22cde8d581ce7cbae5da986dfb">Date</a> (time_t value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a julian date from a time_t type. <a href="#acc503a22cde8d581ce7cbae5da986dfb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a3c2779a7547dbeadd671af62672c248b">get</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the date as a number for the object or 0 if invalid. <a href="#a3c2779a7547dbeadd671af62672c248b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a3b0953368b565ccb52bdbbc56dacfa27">get</a> (char *buffer) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a ISO string representation of the date (yyyy-mm-dd). <a href="#a3b0953368b565ccb52bdbbc56dacfa27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a2eda33977264ed2936827dc58b1bb2a7">getDay</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the day of the month of the date. <a href="#a2eda33977264ed2936827dc58b1bb2a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#aad1d66c5314c93a22d65c4d60870b3ec">getDayOfWeek</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the day of the week (0-7). <a href="#aad1d66c5314c93a22d65c4d60870b3ec"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ac68ce368b83fb8a09e95afa588434c2d">getJulian</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the julian number of a date. <a href="#ac68ce368b83fb8a09e95afa588434c2d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#abe3689a0b7a35cd0725c26155526413e">getMonth</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the month of the date (1-12). <a href="#abe3689a0b7a35cd0725c26155526413e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ac8e74fc83a6229a6a6301800f324c6b5">getTime</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a time_t for the julian date if in time_t epoch. <a href="#ac8e74fc83a6229a6a6301800f324c6b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a572e8a83aa67179912233917af571a60">getYear</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the year of the date. <a href="#a572e8a83aa67179912233917af571a60"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a75ae1d8dc0d72ed20a4cd99dbbed7791">isValid</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if date is valid. <a href="#a75ae1d8dc0d72ed20a4cd99dbbed7791"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ab91635dc9f65ca4f79113ac3cccf5031">operator bool</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if julian date is valid for <a class="el" href="a00214.html#aa074f1a5a7f2741a51a01bc1607fb4a6" title="Convenience function to validate object assuming it is castable to bool.">is()</a> expression. <a href="#ab91635dc9f65ca4f79113ac3cccf5031"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#acafc59ec941e2708632b2adbe360173b">operator long</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Casting operator to return date as number. <a href="#acafc59ec941e2708632b2adbe360173b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ab2cb3c7262c7741dfab24d1dec96c21e">operator!</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if julian date is not valid. <a href="#ab2cb3c7262c7741dfab24d1dec96c21e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a9095a07008001022f1b2a427c1a08ec7">operator!=</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian dates if not same date. <a href="#a9095a07008001022f1b2a427c1a08ec7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00157.html">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a6f33c34d1f8b4cd5959c17b4df3cabd8">operator()</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Expression operator to return an ISO date string for the current julian date. <a href="#a6f33c34d1f8b4cd5959c17b4df3cabd8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a075ec684b68d7a46988a636a183d33f1">operator*</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Access julian value. <a href="#a075ec684b68d7a46988a636a183d33f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#afee140ecd55fb4c3b73a615effc5dcb8">operator+</a> (long days)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add days to julian date in an expression. <a href="#afee140ecd55fb4c3b73a615effc5dcb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a2ac640ce9918ef5d782a0474d4bc5e3f">operator++</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increment date by one day. <a href="#a2ac640ce9918ef5d782a0474d4bc5e3f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#adffa1a56283433e122177d695392d217">operator+=</a> (long offset)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increment date by offset. <a href="#adffa1a56283433e122177d695392d217"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a40dd7cf840fb2e6484eddd97f909c3aa">operator-</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Operator to compute number of days between two dates. <a href="#a40dd7cf840fb2e6484eddd97f909c3aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ac8677b959b14d539aa20fa4b390bcb1b">operator-</a> (long days)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract days from a julian date in an expression. <a href="#ac8677b959b14d539aa20fa4b390bcb1b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a996a61c00e486f23b2eb0ef034b7243b">operator--</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrement date by one day. <a href="#a996a61c00e486f23b2eb0ef034b7243b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#ab0c605d6cbaef4550c17aaada324aca6">operator-=</a> (long offset)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrement date by offset. <a href="#ab0c605d6cbaef4550c17aaada324aca6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a03c5618bfdc0000b4b828beb8f570119">operator<</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian date if earlier than another date. <a href="#a03c5618bfdc0000b4b828beb8f570119"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a2e5a45988143b3c36ea895597cca42bc">operator<=</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian date if earlier than or equal to another date. <a href="#a2e5a45988143b3c36ea895597cca42bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00045.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a0b82e586ec863503a13e8aeb1bdb9e5e">operator=</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign date from another date object. <a href="#a0b82e586ec863503a13e8aeb1bdb9e5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#aa55ee92e22f662ee5698a34810ed403a">operator==</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian dates if same date. <a href="#aa55ee92e22f662ee5698a34810ed403a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a540ec8c852254c63d739e63830aac241">operator></a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian date if later than another date. <a href="#a540ec8c852254c63d739e63830aac241"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#aede32200dc6585572778ab7f93d63ca4">operator>=</a> (const <a class="el" href="a00045.html">Date</a> &date)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare julian date if later than or equal to another date. <a href="#aede32200dc6585572778ab7f93d63ca4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a76434868d9c44d498b0f53327ed05137">operator[]</a> (<a class="el" href="a00045.html#af6a394e61b3f83f67adea4d859272d71">index_t</a> component) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Access numeric components. <a href="#a76434868d9c44d498b0f53327ed05137"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a65ab3747f150e5a31503b2694e58d70e">set</a> (const char *<a class="el" href="a00015.html">pointer</a>, size_t size=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the julian date based on an ISO date string of specified size. <a href="#a65ab3747f150e5a31503b2694e58d70e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fb926eb337ac0f04e5baaafface3912"></a><!-- doxytag: member="ucc::Date::set" ref="a7fb926eb337ac0f04e5baaafface3912" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a7fb926eb337ac0f04e5baaafface3912">set</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set (update) the date with current date. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e05839aa4a71ffad2d5149e674fd08b"></a><!-- doxytag: member="ucc::Date::~Date" ref="a7e05839aa4a71ffad2d5149e674fd08b" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a7e05839aa4a71ffad2d5149e674fd08b">~Date</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy julian date object. <br/></td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe62b69bd5b1ee9ee55d7709672cea9a"></a><!-- doxytag: member="ucc::Date::sz_string" ref="abe62b69bd5b1ee9ee55d7709672cea9a" args="" -->
static const size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#abe62b69bd5b1ee9ee55d7709672cea9a">sz_string</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Size of date string field. <br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae347188d3c8c424d43ea8f0d7279530b"></a><!-- doxytag: member="ucc::Date::fromJulian" ref="ae347188d3c8c424d43ea8f0d7279530b" args="(char *buf) const " -->
void </td><td class="memItemRight" valign="bottom"><b>fromJulian</b> (char *buf) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad197c1497b6ed010d29ab081a64acbfc"></a><!-- doxytag: member="ucc::Date::toJulian" ref="ad197c1497b6ed010d29ab081a64acbfc" args="(long year, long month, long day)" -->
void </td><td class="memItemRight" valign="bottom"><b>toJulian</b> (long year, long month, long day)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00045.html#a5c54188199e18fba4daa61bcfb8a6246">update</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A method to use to "post" any changed values when shadowing a mixed object class. <a href="#a5c54188199e18fba4daa61bcfb8a6246"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b3eb45c1df5bbbdc7db47f671f55d49"></a><!-- doxytag: member="ucc::Date::julian" ref="a7b3eb45c1df5bbbdc7db47f671f55d49" args="" -->
long </td><td class="memItemRight" valign="bottom"><b>julian</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="a00045.html" title="The Date class uses a julian date representation of the current year, month, and...">Date</a> class uses a julian date representation of the current year, month, and day. </p>
<p>This is then manipulated in several forms and may be exported as needed.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> julian number based date class. </dd></dl>
<p>Definition at line <a class="el" href="a00191_source.html#l00066">66</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="acc503a22cde8d581ce7cbae5da986dfb"></a><!-- doxytag: member="ucc::Date::Date" ref="acc503a22cde8d581ce7cbae5da986dfb" args="(time_t value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::Date </td>
<td>(</td>
<td class="paramtype">time_t </td>
<td class="paramname"> <em>value</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a julian date from a time_t type. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>from time() </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab2b4340ddb5775192236dba6cb2d085c"></a><!-- doxytag: member="ucc::Date::Date" ref="ab2b4340ddb5775192236dba6cb2d085c" args="(struct tm *object)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::Date </td>
<td>(</td>
<td class="paramtype">struct tm * </td>
<td class="paramname"> <em>object</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a julian date from a local or gmt date and time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>from <a class="el" href="a00047.html#a3279a68a7222be4015d147e609e56ac8" title="Fetch an instance of time converted to local time.">DateTime::glt()</a> or gmt(). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a118ad600d9e1341fa9b9362f987e67a9"></a><!-- doxytag: member="ucc::Date::Date" ref="a118ad600d9e1341fa9b9362f987e67a9" args="(const char *pointer, size_t size=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::Date </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>pointer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>size</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a julian date from a ISO date string of a specified size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to ISO date string. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>of date field if not null terminated. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1d908ca7d26e012bdb4808e2464143c7"></a><!-- doxytag: member="ucc::Date::Date" ref="a1d908ca7d26e012bdb4808e2464143c7" args="(int year, unsigned month=1, unsigned day=1)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::Date </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"> <em>month</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"> <em>day</em> = <code>1</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a julian date from an arbitrary year, month, and day. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>year</em> </td><td>of date. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>month</em> </td><td>of date (1-12). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>day</em> </td><td>of month (1-31). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a177877759a2bbf3e38426fee2b8b4cba"></a><!-- doxytag: member="ucc::Date::Date" ref="a177877759a2bbf3e38426fee2b8b4cba" args="(const Date &object)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::Date </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>object</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a julian date object from another object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>to copy. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3c2779a7547dbeadd671af62672c248b"></a><!-- doxytag: member="ucc::Date::get" ref="a3c2779a7547dbeadd671af62672c248b" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long ucc::Date::get </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the date as a number for the object or 0 if invalid. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>date as number. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a13daf4cbc08bfbcae32658408df3ec42">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a3b0953368b565ccb52bdbbc56dacfa27"></a><!-- doxytag: member="ucc::Date::get" ref="a3b0953368b565ccb52bdbbc56dacfa27" args="(char *buffer) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* ucc::Date::get </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>buffer</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a ISO string representation of the date (yyyy-mm-dd). </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>buffer</em> </td><td>to store string. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>string representation. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a437d119f3895eeae5a7a6af805654b92">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a2eda33977264ed2936827dc58b1bb2a7"></a><!-- doxytag: member="ucc::Date::getDay" ref="a2eda33977264ed2936827dc58b1bb2a7" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned ucc::Date::getDay </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the day of the month of the date. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>day of month </dd></dl>
</div>
</div>
<a class="anchor" id="aad1d66c5314c93a22d65c4d60870b3ec"></a><!-- doxytag: member="ucc::Date::getDayOfWeek" ref="aad1d66c5314c93a22d65c4d60870b3ec" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned ucc::Date::getDayOfWeek </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the day of the week (0-7). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>day of week </dd></dl>
</div>
</div>
<a class="anchor" id="ac68ce368b83fb8a09e95afa588434c2d"></a><!-- doxytag: member="ucc::Date::getJulian" ref="ac68ce368b83fb8a09e95afa588434c2d" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long ucc::Date::getJulian </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the julian number of a date. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>julian number. </dd></dl>
<p>Definition at line <a class="el" href="a00191_source.html#l00162">162</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="abe3689a0b7a35cd0725c26155526413e"></a><!-- doxytag: member="ucc::Date::getMonth" ref="abe3689a0b7a35cd0725c26155526413e" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned ucc::Date::getMonth </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the month of the date (1-12). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>month of year </dd></dl>
</div>
</div>
<a class="anchor" id="ac8e74fc83a6229a6a6301800f324c6b5"></a><!-- doxytag: member="ucc::Date::getTime" ref="ac8e74fc83a6229a6a6301800f324c6b5" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">time_t ucc::Date::getTime </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a time_t for the julian date if in time_t epoch. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>time_t or -1 if out of range. </dd></dl>
</div>
</div>
<a class="anchor" id="a572e8a83aa67179912233917af571a60"></a><!-- doxytag: member="ucc::Date::getYear" ref="a572e8a83aa67179912233917af571a60" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int ucc::Date::getYear </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the year of the date. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>year of the date </dd></dl>
</div>
</div>
<a class="anchor" id="a75ae1d8dc0d72ed20a4cd99dbbed7791"></a><!-- doxytag: member="ucc::Date::isValid" ref="a75ae1d8dc0d72ed20a4cd99dbbed7791" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::isValid </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if date is valid. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if julian date is valid. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#aa6f32f971eee8071e24da626a5766f4a">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="ab91635dc9f65ca4f79113ac3cccf5031"></a><!-- doxytag: member="ucc::Date::operator bool" ref="ab91635dc9f65ca4f79113ac3cccf5031" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::operator bool </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if julian date is valid for <a class="el" href="a00214.html#aa074f1a5a7f2741a51a01bc1607fb4a6" title="Convenience function to validate object assuming it is castable to bool.">is()</a> expression. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if date is valid. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a5f7830bb686b04c7c8c7fe64c284667b">ucc::DateTime</a>.</p>
<p>Definition at line <a class="el" href="a00191_source.html#l00338">338</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="acafc59ec941e2708632b2adbe360173b"></a><!-- doxytag: member="ucc::Date::operator long" ref="acafc59ec941e2708632b2adbe360173b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Date::operator long </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Casting operator to return date as number. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>julian number. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a916d5a4581919e508e0260f36357de64">ucc::DateTime</a>.</p>
<p>Definition at line <a class="el" href="a00191_source.html#l00206">206</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab2cb3c7262c7741dfab24d1dec96c21e"></a><!-- doxytag: member="ucc::Date::operator!" ref="ab2cb3c7262c7741dfab24d1dec96c21e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator! </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if julian date is not valid. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if date is invalid. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#aa41cc81e39ffa098baf81b707510b223">ucc::DateTime</a>.</p>
<p>Definition at line <a class="el" href="a00191_source.html#l00331">331</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="a9095a07008001022f1b2a427c1a08ec7"></a><!-- doxytag: member="ucc::Date::operator!=" ref="a9095a07008001022f1b2a427c1a08ec7" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian dates if not same date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if not same. </dd></dl>
</div>
</div>
<a class="anchor" id="a6f33c34d1f8b4cd5959c17b4df3cabd8"></a><!-- doxytag: member="ucc::Date::operator()" ref="a6f33c34d1f8b4cd5959c17b4df3cabd8" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00157.html">String</a> ucc::Date::operator() </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Expression operator to return an ISO date string for the current julian date. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>ISO date string. </dd></dl>
</div>
</div>
<a class="anchor" id="a075ec684b68d7a46988a636a183d33f1"></a><!-- doxytag: member="ucc::Date::operator*" ref="a075ec684b68d7a46988a636a183d33f1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long ucc::Date::operator* </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Access julian value. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>julian number of object. </dd></dl>
<p>Definition at line <a class="el" href="a00191_source.html#l00220">220</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="afee140ecd55fb4c3b73a615effc5dcb8"></a><!-- doxytag: member="ucc::Date::operator+" ref="afee140ecd55fb4c3b73a615effc5dcb8" args="(long days)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a> ucc::Date::operator+ </td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"> <em>days</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add days to julian date in an expression. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>days</em> </td><td>to add. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new date object with modified days. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#ad034d4c3727174d2018a4302d90fdbcd">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a2ac640ce9918ef5d782a0474d4bc5e3f"></a><!-- doxytag: member="ucc::Date::operator++" ref="a2ac640ce9918ef5d782a0474d4bc5e3f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a>& ucc::Date::operator++ </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Increment date by one day. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>instance of current date object. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a3c94494ed6e480a89d73c1679c9b30a4">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="adffa1a56283433e122177d695392d217"></a><!-- doxytag: member="ucc::Date::operator+=" ref="adffa1a56283433e122177d695392d217" args="(long offset)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a>& ucc::Date::operator+= </td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"> <em>offset</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Increment date by offset. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>to add to julian date. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>instance of current date object. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a52d8692c2b04c6a0b65c9856e7c77c14">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a40dd7cf840fb2e6484eddd97f909c3aa"></a><!-- doxytag: member="ucc::Date::operator-" ref="a40dd7cf840fb2e6484eddd97f909c3aa" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long ucc::Date::operator- </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Operator to compute number of days between two dates. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>offset for computation. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of days difference. </dd></dl>
<p>Definition at line <a class="el" href="a00191_source.html#l00275">275</a> of file <a class="el" href="a00191_source.html">datetime.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac8677b959b14d539aa20fa4b390bcb1b"></a><!-- doxytag: member="ucc::Date::operator-" ref="ac8677b959b14d539aa20fa4b390bcb1b" args="(long days)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a> ucc::Date::operator- </td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"> <em>days</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Subtract days from a julian date in an expression. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>days</em> </td><td>to subtract. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new date object with modified days. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a1b2c5f820c68a2748d233ee5a32a2647">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a996a61c00e486f23b2eb0ef034b7243b"></a><!-- doxytag: member="ucc::Date::operator--" ref="a996a61c00e486f23b2eb0ef034b7243b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a>& ucc::Date::operator-- </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decrement date by one day. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>instance of current date object. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a1418d7e787726250d1f5ecd0db4a4441">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="ab0c605d6cbaef4550c17aaada324aca6"></a><!-- doxytag: member="ucc::Date::operator-=" ref="ab0c605d6cbaef4550c17aaada324aca6" args="(long offset)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a>& ucc::Date::operator-= </td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"> <em>offset</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decrement date by offset. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>to subtract from julian date. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>instance of current date object. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a58328762a524ef9b04484c058dbfdebc">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a03c5618bfdc0000b4b828beb8f570119"></a><!-- doxytag: member="ucc::Date::operator<" ref="a03c5618bfdc0000b4b828beb8f570119" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator< </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian date if earlier than another date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if earlier. </dd></dl>
</div>
</div>
<a class="anchor" id="a2e5a45988143b3c36ea895597cca42bc"></a><!-- doxytag: member="ucc::Date::operator<=" ref="a2e5a45988143b3c36ea895597cca42bc" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator<= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian date if earlier than or equal to another date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if earlier or same. </dd></dl>
</div>
</div>
<a class="anchor" id="a0b82e586ec863503a13e8aeb1bdb9e5e"></a><!-- doxytag: member="ucc::Date::operator=" ref="a0b82e586ec863503a13e8aeb1bdb9e5e" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00045.html">Date</a>& ucc::Date::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Assign date from another date object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>object to assign from. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>current modified date object. </dd></dl>
</div>
</div>
<a class="anchor" id="aa55ee92e22f662ee5698a34810ed403a"></a><!-- doxytag: member="ucc::Date::operator==" ref="aa55ee92e22f662ee5698a34810ed403a" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian dates if same date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if same. </dd></dl>
</div>
</div>
<a class="anchor" id="a540ec8c852254c63d739e63830aac241"></a><!-- doxytag: member="ucc::Date::operator>" ref="a540ec8c852254c63d739e63830aac241" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian date if later than another date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if later. </dd></dl>
</div>
</div>
<a class="anchor" id="aede32200dc6585572778ab7f93d63ca4"></a><!-- doxytag: member="ucc::Date::operator>=" ref="aede32200dc6585572778ab7f93d63ca4" args="(const Date &date)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Date::operator>= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00045.html">Date</a> & </td>
<td class="paramname"> <em>date</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare julian date if later than or equal to another date. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em> </td><td>to compare with. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if later or same. </dd></dl>
</div>
</div>
<a class="anchor" id="a76434868d9c44d498b0f53327ed05137"></a><!-- doxytag: member="ucc::Date::operator[]" ref="a76434868d9c44d498b0f53327ed05137" args="(index_t component) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int ucc::Date::operator[] </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00045.html#af6a394e61b3f83f67adea4d859272d71">index_t</a> </td>
<td class="paramname"> <em>component</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Access numeric components. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>component</em> </td><td>to access. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>value of component. </dd></dl>
<p>Reimplemented in <a class="el" href="a00047.html#a0367e24415cb37c4a3cb288b1f83b100">ucc::DateTime</a>.</p>
</div>
</div>
<a class="anchor" id="a65ab3747f150e5a31503b2694e58d70e"></a><!-- doxytag: member="ucc::Date::set" ref="a65ab3747f150e5a31503b2694e58d70e" args="(const char *pointer, size_t size=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Date::set </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>pointer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>size</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the julian date based on an ISO date string of specified size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to date string field. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>of field if not null terminated. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5c54188199e18fba4daa61bcfb8a6246"></a><!-- doxytag: member="ucc::Date::update" ref="a5c54188199e18fba4daa61bcfb8a6246" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ucc::Date::update </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A method to use to "post" any changed values when shadowing a mixed object class. </p>
<p>This is used by <a class="el" href="a00046.html" title="A number class that manipulates a string buffer that is also a date.">DateNumber</a> and string classes. </p>
<p>Reimplemented in <a class="el" href="a00047.html#af9a73627352358ee530ba650c5d5389a">ucc::DateTime</a>, <a class="el" href="a00048.html#ae80c37f691624feab7c369d06bea6617">ucc::DateTimeString</a>, and <a class="el" href="a00046.html#aafa5281f99b02c7810495e7bb9c8976b">ucc::DateNumber</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00191_source.html">datetime.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:28 2010 for UCommon by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
|