/usr/share/doc/libjoda-time-java/api/org/joda/time/base/AbstractDateTime.html is in libjoda-time-java-doc 2.1-2.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Mon Apr 09 15:49:16 UTC 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
AbstractDateTime (Joda time 2.1 API)
</TITLE>
<META NAME="date" CONTENT="2012-04-09">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AbstractDateTime (Joda time 2.1 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractDateTime.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../org/joda/time/base/AbstractDuration.html" title="class in org.joda.time.base"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/joda/time/base/AbstractDateTime.html" target="_top"><B>FRAMES</B></A>
<A HREF="AbstractDateTime.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.joda.time.base</FONT>
<BR>
Class AbstractDateTime</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/joda/time/base/AbstractInstant.html" title="class in org.joda.time.base">org.joda.time.base.AbstractInstant</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.joda.time.base.AbstractDateTime</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Comparable<<A HREF="../../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</A>>, <A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/joda/time/base/BaseDateTime.html" title="class in org.joda.time.base">BaseDateTime</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>AbstractDateTime</B><DT>extends <A HREF="../../../../org/joda/time/base/AbstractInstant.html" title="class in org.joda.time.base">AbstractInstant</A><DT>implements <A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></DL>
</PRE>
<P>
AbstractDateTime provides the common behaviour for datetime classes.
<p>
This class should generally not be used directly by API users.
The <A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time"><CODE>ReadableDateTime</CODE></A> interface should be used when different
kinds of date/time objects are to be referenced.
<p>
Whenever you want to implement <code>ReadableDateTime</code> you should
extend this class.
<p>
AbstractDateTime subclasses may be mutable and not thread-safe.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>1.0</DD>
<DT><B>Author:</B></DT>
<DD>Brian S O'Neill, Stephen Colebourne</DD>
</DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#AbstractDateTime()">AbstractDateTime</A></B>()</CODE>
<BR>
Constructor.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#get(org.joda.time.DateTimeFieldType)">get</A></B>(<A HREF="../../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</A> type)</CODE>
<BR>
Get the value of one of the fields of a datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getCenturyOfEra()">getCenturyOfEra</A></B>()</CODE>
<BR>
Get the year of era field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getDayOfMonth()">getDayOfMonth</A></B>()</CODE>
<BR>
Get the day of month field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getDayOfWeek()">getDayOfWeek</A></B>()</CODE>
<BR>
Get the day of week field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getDayOfYear()">getDayOfYear</A></B>()</CODE>
<BR>
Get the day of year field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getEra()">getEra</A></B>()</CODE>
<BR>
Get the era field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getHourOfDay()">getHourOfDay</A></B>()</CODE>
<BR>
Get the hour of day field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getMillisOfDay()">getMillisOfDay</A></B>()</CODE>
<BR>
Get the millis of day field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getMillisOfSecond()">getMillisOfSecond</A></B>()</CODE>
<BR>
Get the millis of second field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getMinuteOfDay()">getMinuteOfDay</A></B>()</CODE>
<BR>
Get the minute of day field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getMinuteOfHour()">getMinuteOfHour</A></B>()</CODE>
<BR>
Get the minute of hour field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getMonthOfYear()">getMonthOfYear</A></B>()</CODE>
<BR>
Get the month of year field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getSecondOfDay()">getSecondOfDay</A></B>()</CODE>
<BR>
Get the second of day field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getSecondOfMinute()">getSecondOfMinute</A></B>()</CODE>
<BR>
Get the second of minute field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getWeekOfWeekyear()">getWeekOfWeekyear</A></B>()</CODE>
<BR>
Get the week of weekyear field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getWeekyear()">getWeekyear</A></B>()</CODE>
<BR>
Get the weekyear field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getYear()">getYear</A></B>()</CODE>
<BR>
Get the year field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getYearOfCentury()">getYearOfCentury</A></B>()</CODE>
<BR>
Get the year of century field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getYearOfEra()">getYearOfEra</A></B>()</CODE>
<BR>
Get the year of era field value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Calendar</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#toCalendar(java.util.Locale)">toCalendar</A></B>(java.util.Locale locale)</CODE>
<BR>
Get the date time as a <code>java.util.Calendar</code>, assigning
exactly the same millisecond instant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.GregorianCalendar</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#toGregorianCalendar()">toGregorianCalendar</A></B>()</CODE>
<BR>
Get the date time as a <code>java.util.GregorianCalendar</code>,
assigning exactly the same millisecond instant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#toString(java.lang.String)">toString</A></B>(java.lang.String pattern)</CODE>
<BR>
Output the instant using the specified format pattern.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/joda/time/base/AbstractDateTime.html#toString(java.lang.String, java.util.Locale)">toString</A></B>(java.lang.String pattern,
java.util.Locale locale)</CODE>
<BR>
Output the instant using the specified format pattern.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.joda.time.base.AbstractInstant"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.joda.time.base.<A HREF="../../../../org/joda/time/base/AbstractInstant.html" title="class in org.joda.time.base">AbstractInstant</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/joda/time/base/AbstractInstant.html#compareTo(org.joda.time.ReadableInstant)">compareTo</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#get(org.joda.time.DateTimeField)">get</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#getZone()">getZone</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#hashCode()">hashCode</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isAfter(long)">isAfter</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isAfter(org.joda.time.ReadableInstant)">isAfter</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isAfterNow()">isAfterNow</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isBefore(long)">isBefore</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isBefore(org.joda.time.ReadableInstant)">isBefore</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isBeforeNow()">isBeforeNow</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isEqual(long)">isEqual</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isEqual(org.joda.time.ReadableInstant)">isEqual</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isEqualNow()">isEqualNow</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toDate()">toDate</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toDateTime()">toDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toDateTime(org.joda.time.Chronology)">toDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toDateTime(org.joda.time.DateTimeZone)">toDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toDateTimeISO()">toDateTimeISO</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toInstant()">toInstant</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toMutableDateTime()">toMutableDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toMutableDateTime(org.joda.time.Chronology)">toMutableDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toMutableDateTime(org.joda.time.DateTimeZone)">toMutableDateTime</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toMutableDateTimeISO()">toMutableDateTimeISO</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toString()">toString</A>, <A HREF="../../../../org/joda/time/base/AbstractInstant.html#toString(org.joda.time.format.DateTimeFormatter)">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.joda.time.ReadableDateTime"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface org.joda.time.<A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#toDateTime()">toDateTime</A>, <A HREF="../../../../org/joda/time/ReadableDateTime.html#toMutableDateTime()">toMutableDateTime</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.joda.time.ReadableInstant"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface org.joda.time.<A HREF="../../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/joda/time/ReadableInstant.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#getChronology()">getChronology</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#getMillis()">getMillis</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#getZone()">getZone</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#hashCode()">hashCode</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#isAfter(org.joda.time.ReadableInstant)">isAfter</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#isBefore(org.joda.time.ReadableInstant)">isBefore</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#isEqual(org.joda.time.ReadableInstant)">isEqual</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#toInstant()">toInstant</A>, <A HREF="../../../../org/joda/time/ReadableInstant.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Comparable"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface java.lang.Comparable</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>compareTo</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="AbstractDateTime()"><!-- --></A><H3>
AbstractDateTime</H3>
<PRE>
protected <B>AbstractDateTime</B>()</PRE>
<DL>
<DD>Constructor.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="get(org.joda.time.DateTimeFieldType)"><!-- --></A><H3>
get</H3>
<PRE>
public int <B>get</B>(<A HREF="../../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</A> type)</PRE>
<DL>
<DD>Get the value of one of the fields of a datetime.
<p>
This method uses the chronology of the datetime to obtain the value.
It is essentially a generic way of calling one of the get methods.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableInstant.html#get(org.joda.time.DateTimeFieldType)">get</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/joda/time/base/AbstractInstant.html#get(org.joda.time.DateTimeFieldType)">get</A></CODE> in class <CODE><A HREF="../../../../org/joda/time/base/AbstractInstant.html" title="class in org.joda.time.base">AbstractInstant</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - a field type, usually obtained from DateTimeFieldType
<DT><B>Returns:</B><DD>the value of that field
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the field type is null</DL>
</DD>
</DL>
<HR>
<A NAME="getEra()"><!-- --></A><H3>
getEra</H3>
<PRE>
public int <B>getEra</B>()</PRE>
<DL>
<DD>Get the era field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getEra()">getEra</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the era</DL>
</DD>
</DL>
<HR>
<A NAME="getCenturyOfEra()"><!-- --></A><H3>
getCenturyOfEra</H3>
<PRE>
public int <B>getCenturyOfEra</B>()</PRE>
<DL>
<DD>Get the year of era field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getCenturyOfEra()">getCenturyOfEra</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year of era</DL>
</DD>
</DL>
<HR>
<A NAME="getYearOfEra()"><!-- --></A><H3>
getYearOfEra</H3>
<PRE>
public int <B>getYearOfEra</B>()</PRE>
<DL>
<DD>Get the year of era field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getYearOfEra()">getYearOfEra</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year of era</DL>
</DD>
</DL>
<HR>
<A NAME="getYearOfCentury()"><!-- --></A><H3>
getYearOfCentury</H3>
<PRE>
public int <B>getYearOfCentury</B>()</PRE>
<DL>
<DD>Get the year of century field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getYearOfCentury()">getYearOfCentury</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year of century</DL>
</DD>
</DL>
<HR>
<A NAME="getYear()"><!-- --></A><H3>
getYear</H3>
<PRE>
public int <B>getYear</B>()</PRE>
<DL>
<DD>Get the year field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getYear()">getYear</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year</DL>
</DD>
</DL>
<HR>
<A NAME="getWeekyear()"><!-- --></A><H3>
getWeekyear</H3>
<PRE>
public int <B>getWeekyear</B>()</PRE>
<DL>
<DD>Get the weekyear field value.
<p>
The weekyear is the year that matches with the weekOfWeekyear field.
In the standard ISO8601 week algorithm, the first week of the year
is that in which at least 4 days are in the year. As a result of this
definition, day 1 of the first week may be in the previous year.
The weekyear allows you to query the effective year for that day.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getWeekyear()">getWeekyear</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year of a week based year</DL>
</DD>
</DL>
<HR>
<A NAME="getMonthOfYear()"><!-- --></A><H3>
getMonthOfYear</H3>
<PRE>
public int <B>getMonthOfYear</B>()</PRE>
<DL>
<DD>Get the month of year field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getMonthOfYear()">getMonthOfYear</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the month of year</DL>
</DD>
</DL>
<HR>
<A NAME="getWeekOfWeekyear()"><!-- --></A><H3>
getWeekOfWeekyear</H3>
<PRE>
public int <B>getWeekOfWeekyear</B>()</PRE>
<DL>
<DD>Get the week of weekyear field value.
<p>
This field is associated with the "weekyear" via <A HREF="../../../../org/joda/time/base/AbstractDateTime.html#getWeekyear()"><CODE>getWeekyear()</CODE></A>.
In the standard ISO8601 week algorithm, the first week of the year
is that in which at least 4 days are in the year. As a result of this
definition, day 1 of the first week may be in the previous year.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getWeekOfWeekyear()">getWeekOfWeekyear</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the week of a week based year</DL>
</DD>
</DL>
<HR>
<A NAME="getDayOfYear()"><!-- --></A><H3>
getDayOfYear</H3>
<PRE>
public int <B>getDayOfYear</B>()</PRE>
<DL>
<DD>Get the day of year field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getDayOfYear()">getDayOfYear</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the day of year</DL>
</DD>
</DL>
<HR>
<A NAME="getDayOfMonth()"><!-- --></A><H3>
getDayOfMonth</H3>
<PRE>
public int <B>getDayOfMonth</B>()</PRE>
<DL>
<DD>Get the day of month field value.
<p>
The values for the day of month are defined in <A HREF="../../../../org/joda/time/DateTimeConstants.html" title="class in org.joda.time"><CODE>DateTimeConstants</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getDayOfMonth()">getDayOfMonth</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the day of month</DL>
</DD>
</DL>
<HR>
<A NAME="getDayOfWeek()"><!-- --></A><H3>
getDayOfWeek</H3>
<PRE>
public int <B>getDayOfWeek</B>()</PRE>
<DL>
<DD>Get the day of week field value.
<p>
The values for the day of week are defined in <A HREF="../../../../org/joda/time/DateTimeConstants.html" title="class in org.joda.time"><CODE>DateTimeConstants</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getDayOfWeek()">getDayOfWeek</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the day of week</DL>
</DD>
</DL>
<HR>
<A NAME="getHourOfDay()"><!-- --></A><H3>
getHourOfDay</H3>
<PRE>
public int <B>getHourOfDay</B>()</PRE>
<DL>
<DD>Get the hour of day field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getHourOfDay()">getHourOfDay</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the hour of day</DL>
</DD>
</DL>
<HR>
<A NAME="getMinuteOfDay()"><!-- --></A><H3>
getMinuteOfDay</H3>
<PRE>
public int <B>getMinuteOfDay</B>()</PRE>
<DL>
<DD>Get the minute of day field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getMinuteOfDay()">getMinuteOfDay</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the minute of day</DL>
</DD>
</DL>
<HR>
<A NAME="getMinuteOfHour()"><!-- --></A><H3>
getMinuteOfHour</H3>
<PRE>
public int <B>getMinuteOfHour</B>()</PRE>
<DL>
<DD>Get the minute of hour field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getMinuteOfHour()">getMinuteOfHour</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the minute of hour</DL>
</DD>
</DL>
<HR>
<A NAME="getSecondOfDay()"><!-- --></A><H3>
getSecondOfDay</H3>
<PRE>
public int <B>getSecondOfDay</B>()</PRE>
<DL>
<DD>Get the second of day field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getSecondOfDay()">getSecondOfDay</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the second of day</DL>
</DD>
</DL>
<HR>
<A NAME="getSecondOfMinute()"><!-- --></A><H3>
getSecondOfMinute</H3>
<PRE>
public int <B>getSecondOfMinute</B>()</PRE>
<DL>
<DD>Get the second of minute field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getSecondOfMinute()">getSecondOfMinute</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the second of minute</DL>
</DD>
</DL>
<HR>
<A NAME="getMillisOfDay()"><!-- --></A><H3>
getMillisOfDay</H3>
<PRE>
public int <B>getMillisOfDay</B>()</PRE>
<DL>
<DD>Get the millis of day field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getMillisOfDay()">getMillisOfDay</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the millis of day</DL>
</DD>
</DL>
<HR>
<A NAME="getMillisOfSecond()"><!-- --></A><H3>
getMillisOfSecond</H3>
<PRE>
public int <B>getMillisOfSecond</B>()</PRE>
<DL>
<DD>Get the millis of second field value.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#getMillisOfSecond()">getMillisOfSecond</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the millis of second</DL>
</DD>
</DL>
<HR>
<A NAME="toCalendar(java.util.Locale)"><!-- --></A><H3>
toCalendar</H3>
<PRE>
public java.util.Calendar <B>toCalendar</B>(java.util.Locale locale)</PRE>
<DL>
<DD>Get the date time as a <code>java.util.Calendar</code>, assigning
exactly the same millisecond instant.
The locale is passed in, enabling Calendar to select the correct
localized subclass.
<p>
The JDK and Joda-Time both have time zone implementations and these
differ in accuracy. Joda-Time's implementation is generally more up to
date and thus more accurate - for example JDK1.3 has no historical data.
The effect of this is that the field values of the <code>Calendar</code>
may differ from those of this object, even though the milliseond value
is the same. Most of the time this just means that the JDK field values
are wrong, as our time zone information is more up to date.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>locale</CODE> - the locale to get the Calendar for, or default if null
<DT><B>Returns:</B><DD>a localized Calendar initialised with this datetime</DL>
</DD>
</DL>
<HR>
<A NAME="toGregorianCalendar()"><!-- --></A><H3>
toGregorianCalendar</H3>
<PRE>
public java.util.GregorianCalendar <B>toGregorianCalendar</B>()</PRE>
<DL>
<DD>Get the date time as a <code>java.util.GregorianCalendar</code>,
assigning exactly the same millisecond instant.
<p>
The JDK and Joda-Time both have time zone implementations and these
differ in accuracy. Joda-Time's implementation is generally more up to
date and thus more accurate - for example JDK1.3 has no historical data.
The effect of this is that the field values of the <code>Calendar</code>
may differ from those of this object, even though the milliseond value
is the same. Most of the time this just means that the JDK field values
are wrong, as our time zone information is more up to date.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a GregorianCalendar initialised with this datetime</DL>
</DD>
</DL>
<HR>
<A NAME="toString(java.lang.String)"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>(java.lang.String pattern)</PRE>
<DL>
<DD>Output the instant using the specified format pattern.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#toString(java.lang.String)">toString</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - the pattern specification, null means use <code>toString</code><DT><B>See Also:</B><DD><A HREF="../../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><CODE>DateTimeFormat</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toString(java.lang.String, java.util.Locale)"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>(java.lang.String pattern,
java.util.Locale locale)
throws java.lang.IllegalArgumentException</PRE>
<DL>
<DD>Output the instant using the specified format pattern.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html#toString(java.lang.String, java.util.Locale)">toString</A></CODE> in interface <CODE><A HREF="../../../../org/joda/time/ReadableDateTime.html" title="interface in org.joda.time">ReadableDateTime</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - the pattern specification, null means use <code>toString</code><DD><CODE>locale</CODE> - Locale to use, null means default
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid<DT><B>See Also:</B><DD><A HREF="../../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><CODE>DateTimeFormat</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractDateTime.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../org/joda/time/base/AbstractDuration.html" title="class in org.joda.time.base"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/joda/time/base/AbstractDateTime.html" target="_top"><B>FRAMES</B></A>
<A HREF="AbstractDateTime.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2002-2012 <a href="http://www.joda.org">Joda.org</a>. All Rights Reserved.
</BODY>
</HTML>
|