This file is indexed.

/usr/share/doc/libjoda-time-java/api/org/joda/time/YearMonth.html is in libjoda-time-java-doc 2.4-1.

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
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>YearMonth (Joda-Time 2.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="YearMonth (Joda-Time 2.4 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/YearMonth.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/joda/time/Weeks.html" title="class in org.joda.time"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/joda/time/YearMonth.html" target="_top">Frames</a></li>
<li><a href="YearMonth.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.joda.time</div>
<h2 title="Class YearMonth" class="title">Class YearMonth</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">org.joda.time.base.AbstractPartial</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../org/joda/time/base/BasePartial.html" title="class in org.joda.time.base">org.joda.time.base.BasePartial</a></li>
<li>
<ul class="inheritance">
<li>org.joda.time.YearMonth</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a>&gt;, <a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="strong">YearMonth</span>
extends <a href="../../../org/joda/time/base/BasePartial.html" title="class in org.joda.time.base">BasePartial</a>
implements <a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
<div class="block">YearMonth is an immutable partial supporting the year and monthOfYear fields.
 <p>
 NOTE: This class only supports the two fields listed above.
 It is impossible to query any other fields, such as dayOfWeek or centuryOfEra.
 <p>
 Calculations on YearMonth are performed using a <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time"><code>Chronology</code></a>.
 This chronology is set to be in the UTC time zone for all calculations.
 <p>
 One use case for this class is to store a credit card expiry date, as that only
 references the year and month.
 This class can be used as the gYearMonth type in XML Schema.
 <p>
 Each individual field can be queried in two ways:
 <ul>
 <li><code>getMonthOfYear()</code>
 <li><code>monthOfYear().get()</code>
 </ul>
 The second technique also provides access to other useful methods on the
 field:
 <ul>
 <li>numeric value - <code>monthOfYear().get()</code>
 <li>text value - <code>monthOfYear().getAsText()</code>
 <li>short text value - <code>monthOfYear().getAsShortText()</code>
 <li>maximum/minimum values - <code>monthOfYear().getMaximumValue()</code>
 <li>add/subtract - <code>monthOfYear().addToCopy()</code>
 <li>set - <code>monthOfYear().setCopy()</code>
 </ul>
 <p>
 YearMonth is thread-safe and immutable, provided that the Chronology is as well.
 All standard Chronology classes supplied are thread-safe and immutable.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#org.joda.time.YearMonth">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a></strong></code>
<div class="block">The property class for <code>YearMonth</code>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#MONTH_OF_YEAR">MONTH_OF_YEAR</a></strong></code>
<div class="block">The index of the monthOfYear field in the field array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#YEAR">YEAR</a></strong></code>
<div class="block">The index of the year field in the field array</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth()">YearMonth</a></strong>()</code>
<div class="block">Constructs a YearMonth with the current year-month, using ISOChronology in
 the default zone to extract the fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(org.joda.time.Chronology)">YearMonth</a></strong>(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</code>
<div class="block">Constructs a YearMonth with the current year-month, using the specified chronology
 and zone to extract the fields.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(org.joda.time.DateTimeZone)">YearMonth</a></strong>(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</code>
<div class="block">Constructs a YearMonth with the current year-month, using ISOChronology in
 the specified zone to extract the fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(int,%20int)">YearMonth</a></strong>(int&nbsp;year,
         int&nbsp;monthOfYear)</code>
<div class="block">Constructs a YearMonth with specified year and month
 using <code>ISOChronology</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(int,%20int,%20org.joda.time.Chronology)">YearMonth</a></strong>(int&nbsp;year,
         int&nbsp;monthOfYear,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</code>
<div class="block">Constructs an instance set to the specified year and month
 using the specified chronology, whose zone is ignored.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(long)">YearMonth</a></strong>(long&nbsp;instant)</code>
<div class="block">Constructs a YearMonth extracting the partial fields from the specified
 milliseconds using the ISOChronology in the default zone.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(long,%20org.joda.time.Chronology)">YearMonth</a></strong>(long&nbsp;instant,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</code>
<div class="block">Constructs a YearMonth extracting the partial fields from the specified
 milliseconds using the chronology provided.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(java.lang.Object)">YearMonth</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;instant)</code>
<div class="block">Constructs a YearMonth from an Object that represents some form of time.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/YearMonth.html#YearMonth(java.lang.Object,%20org.joda.time.Chronology)">YearMonth</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;instant,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</code>
<div class="block">Constructs a YearMonth from an Object that represents some form of time,
 using the specified chronology.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#fromCalendarFields(java.util.Calendar)">fromCalendarFields</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</code>
<div class="block">Constructs a YearMonth from a <code>java.util.Calendar</code>
 using exactly the same field values avoiding any time zone effects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#fromDateFields(java.util.Date)">fromDateFields</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;date)</code>
<div class="block">Constructs a YearMonth from a <code>java.util.Date</code>
 using exactly the same field values avoiding any time zone effects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../org/joda/time/DateTimeField.html" title="class in org.joda.time">DateTimeField</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#getField(int,%20org.joda.time.Chronology)">getField</a></strong>(int&nbsp;index,
        <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chrono)</code>
<div class="block">Gets the field for a specific index in the chronology specified.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#getFieldType(int)">getFieldType</a></strong>(int&nbsp;index)</code>
<div class="block">Gets the field type at the specified index.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#getFieldTypes()">getFieldTypes</a></strong>()</code>
<div class="block">Gets an array of the field type of each of the fields that this partial supports.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#getMonthOfYear()">getMonthOfYear</a></strong>()</code>
<div class="block">Get the month of year field value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#getYear()">getYear</a></strong>()</code>
<div class="block">Get the year field value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#minus(org.joda.time.ReadablePeriod)">minus</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period)</code>
<div class="block">Returns a copy of this year-month with the specified period taken away.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#minusMonths(int)">minusMonths</a></strong>(int&nbsp;months)</code>
<div class="block">Returns a copy of this year-month minus the specified number of months.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#minusYears(int)">minusYears</a></strong>(int&nbsp;years)</code>
<div class="block">Returns a copy of this year-month minus the specified number of years.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#monthOfYear()">monthOfYear</a></strong>()</code>
<div class="block">Get the month of year field property which provides access to advanced functionality.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#now()">now</a></strong>()</code>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using <code>ISOChronology</code> in the default time zone.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#now(org.joda.time.Chronology)">now</a></strong>(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</code>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using the specified chronology.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#now(org.joda.time.DateTimeZone)">now</a></strong>(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</code>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using <code>ISOChronology</code> in the specified time zone.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#parse(java.lang.String)">parse</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</code>
<div class="block">Parses a <code>YearMonth</code> from the specified string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#parse(java.lang.String,%20org.joda.time.format.DateTimeFormatter)">parse</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
     <a href="../../../org/joda/time/format/DateTimeFormatter.html" title="class in org.joda.time.format">DateTimeFormatter</a>&nbsp;formatter)</code>
<div class="block">Parses a <code>YearMonth</code> from the specified string using a formatter.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#plus(org.joda.time.ReadablePeriod)">plus</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period)</code>
<div class="block">Returns a copy of this year-month with the specified period added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#plusMonths(int)">plusMonths</a></strong>(int&nbsp;months)</code>
<div class="block">Returns a copy of this year-month plus the specified number of months.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#plusYears(int)">plusYears</a></strong>(int&nbsp;years)</code>
<div class="block">Returns a copy of this year-month plus the specified number of years.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#property(org.joda.time.DateTimeFieldType)">property</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>&nbsp;type)</code>
<div class="block">Gets the property object for the specified type, which contains
 many useful methods.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#size()">size</a></strong>()</code>
<div class="block">Gets the number of fields in this partial, which is two.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Interval.html" title="class in org.joda.time">Interval</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toInterval()">toInterval</a></strong>()</code>
<div class="block">Converts this object to an Interval representing the whole month.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Interval.html" title="class in org.joda.time">Interval</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toInterval(org.joda.time.DateTimeZone)">toInterval</a></strong>(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</code>
<div class="block">Converts this object to an Interval representing the whole month.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/LocalDate.html" title="class in org.joda.time">LocalDate</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toLocalDate(int)">toLocalDate</a></strong>(int&nbsp;dayOfMonth)</code>
<div class="block">Converts this object to a LocalDate with the same year-month and chronology.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toString()">toString</a></strong>()</code>
<div class="block">Output the year-month in ISO8601 format (yyyy-MM).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toString(java.lang.String)">toString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</code>
<div class="block">Output the year-month using the specified format pattern.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#toString(java.lang.String,%20java.util.Locale)">toString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
        <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;locale)</code>
<div class="block">Output the year-month using the specified format pattern.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withChronologyRetainFields(org.joda.time.Chronology)">withChronologyRetainFields</a></strong>(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;newChronology)</code>
<div class="block">Returns a copy of this year-month with the specified chronology.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withField(org.joda.time.DateTimeFieldType,%20int)">withField</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>&nbsp;fieldType,
         int&nbsp;value)</code>
<div class="block">Returns a copy of this year-month with the specified field set to a new value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withFieldAdded(org.joda.time.DurationFieldType,%20int)">withFieldAdded</a></strong>(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a>&nbsp;fieldType,
              int&nbsp;amount)</code>
<div class="block">Returns a copy of this year-month with the value of the specified field increased.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withMonthOfYear(int)">withMonthOfYear</a></strong>(int&nbsp;monthOfYear)</code>
<div class="block">Returns a copy of this year-month with the month of year field updated.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withPeriodAdded(org.joda.time.ReadablePeriod,%20int)">withPeriodAdded</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period,
               int&nbsp;scalar)</code>
<div class="block">Returns a copy of this year-month with the specified period added.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#withYear(int)">withYear</a></strong>(int&nbsp;year)</code>
<div class="block">Returns a copy of this year-month with the year field updated.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/YearMonth.html#year()">year</a></strong>()</code>
<div class="block">Get the year field property which provides access to advanced functionality.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.joda.time.base.BasePartial">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.joda.time.base.<a href="../../../org/joda/time/base/BasePartial.html" title="class in org.joda.time.base">BasePartial</a></h3>
<code><a href="../../../org/joda/time/base/BasePartial.html#getChronology()">getChronology</a>, <a href="../../../org/joda/time/base/BasePartial.html#getValue(int)">getValue</a>, <a href="../../../org/joda/time/base/BasePartial.html#getValues()">getValues</a>, <a href="../../../org/joda/time/base/BasePartial.html#setValue(int,%20int)">setValue</a>, <a href="../../../org/joda/time/base/BasePartial.html#setValues(int[])">setValues</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.joda.time.base.AbstractPartial">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.joda.time.base.<a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></h3>
<code><a href="../../../org/joda/time/base/AbstractPartial.html#compareTo(org.joda.time.ReadablePartial)">compareTo</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#equals(java.lang.Object)">equals</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#get(org.joda.time.DateTimeFieldType)">get</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#getField(int)">getField</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#getFields()">getFields</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#hashCode()">hashCode</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOf(org.joda.time.DateTimeFieldType)">indexOf</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOf(org.joda.time.DurationFieldType)">indexOf</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOfSupported(org.joda.time.DateTimeFieldType)">indexOfSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOfSupported(org.joda.time.DurationFieldType)">indexOfSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isAfter(org.joda.time.ReadablePartial)">isAfter</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isBefore(org.joda.time.ReadablePartial)">isBefore</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isEqual(org.joda.time.ReadablePartial)">isEqual</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#toDateTime(org.joda.time.ReadableInstant)">toDateTime</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#toString(org.joda.time.format.DateTimeFormatter)">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.joda.time.ReadablePartial">
<!--   -->
</a>
<h3>Methods inherited from interface&nbsp;org.joda.time.<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></h3>
<code><a href="../../../org/joda/time/ReadablePartial.html#equals(java.lang.Object)">equals</a>, <a href="../../../org/joda/time/ReadablePartial.html#get(org.joda.time.DateTimeFieldType)">get</a>, <a href="../../../org/joda/time/ReadablePartial.html#getChronology()">getChronology</a>, <a href="../../../org/joda/time/ReadablePartial.html#getField(int)">getField</a>, <a href="../../../org/joda/time/ReadablePartial.html#getValue(int)">getValue</a>, <a href="../../../org/joda/time/ReadablePartial.html#hashCode()">hashCode</a>, <a href="../../../org/joda/time/ReadablePartial.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</a>, <a href="../../../org/joda/time/ReadablePartial.html#toDateTime(org.joda.time.ReadableInstant)">toDateTime</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Comparable">
<!--   -->
</a>
<h3>Methods inherited from interface&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="YEAR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YEAR</h4>
<pre>public static final&nbsp;int YEAR</pre>
<div class="block">The index of the year field in the field array</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.joda.time.YearMonth.YEAR">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="MONTH_OF_YEAR">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MONTH_OF_YEAR</h4>
<pre>public static final&nbsp;int MONTH_OF_YEAR</pre>
<div class="block">The index of the monthOfYear field in the field array</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.joda.time.YearMonth.MONTH_OF_YEAR">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="YearMonth()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth()</pre>
<div class="block">Constructs a YearMonth with the current year-month, using ISOChronology in
 the default zone to extract the fields.
 <p>
 The constructor uses the default time zone, resulting in the local time
 being initialised. Once the constructor is complete, all further calculations
 are performed without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/YearMonth.html#now()"><code>now()</code></a></dd></dl>
</li>
</ul>
<a name="YearMonth(org.joda.time.DateTimeZone)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</pre>
<div class="block">Constructs a YearMonth with the current year-month, using ISOChronology in
 the specified zone to extract the fields.
 <p>
 The constructor uses the specified time zone to obtain the current year-month.
 Once the constructor is complete, all further calculations
 are performed without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zone</code> - the zone to use, null means default zone</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/YearMonth.html#now(org.joda.time.DateTimeZone)"><code>now(DateTimeZone)</code></a></dd></dl>
</li>
</ul>
<a name="YearMonth(org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</pre>
<div class="block">Constructs a YearMonth with the current year-month, using the specified chronology
 and zone to extract the fields.
 <p>
 The constructor uses the time zone of the chronology specified.
 Once the constructor is complete, all further calculations are performed
 without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>chronology</code> - the chronology, null means ISOChronology in the default zone</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/YearMonth.html#now(org.joda.time.Chronology)"><code>now(Chronology)</code></a></dd></dl>
</li>
</ul>
<a name="YearMonth(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(long&nbsp;instant)</pre>
<div class="block">Constructs a YearMonth extracting the partial fields from the specified
 milliseconds using the ISOChronology in the default zone.
 <p>
 The constructor uses the default time zone, resulting in the local time
 being initialised. Once the constructor is complete, all further calculations
 are performed without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instant</code> - the milliseconds from 1970-01-01T00:00:00Z</dd></dl>
</li>
</ul>
<a name="YearMonth(long, org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(long&nbsp;instant,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</pre>
<div class="block">Constructs a YearMonth extracting the partial fields from the specified
 milliseconds using the chronology provided.
 <p>
 The constructor uses the time zone of the chronology specified.
 Once the constructor is complete, all further calculations are performed
 without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instant</code> - the milliseconds from 1970-01-01T00:00:00Z</dd><dd><code>chronology</code> - the chronology, null means ISOChronology in the default zone</dd></dl>
</li>
</ul>
<a name="YearMonth(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;instant)</pre>
<div class="block">Constructs a YearMonth from an Object that represents some form of time.
 <p>
 The recognised object types are defined in
 <a href="../../../org/joda/time/convert/ConverterManager.html" title="class in org.joda.time.convert"><code>ConverterManager</code></a> and
 include ReadableInstant, String, Calendar and Date.
 The String formats are described by <a href="../../../org/joda/time/format/ISODateTimeFormat.html#localDateParser()"><code>ISODateTimeFormat.localDateParser()</code></a>.
 <p>
 The chronology used will be derived from the object, defaulting to ISO.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instant</code> - the date-time object, null means now</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the instant is invalid</dd></dl>
</li>
</ul>
<a name="YearMonth(java.lang.Object, org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;instant,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</pre>
<div class="block">Constructs a YearMonth from an Object that represents some form of time,
 using the specified chronology.
 <p>
 The recognised object types are defined in
 <a href="../../../org/joda/time/convert/ConverterManager.html" title="class in org.joda.time.convert"><code>ConverterManager</code></a> and
 include ReadableInstant, String, Calendar and Date.
 The String formats are described by <a href="../../../org/joda/time/format/ISODateTimeFormat.html#localDateParser()"><code>ISODateTimeFormat.localDateParser()</code></a>.
 <p>
 The constructor uses the time zone of the chronology specified.
 Once the constructor is complete, all further calculations are performed
 without reference to a time-zone (by switching to UTC).
 The specified chronology overrides that of the object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instant</code> - the date-time object, null means now</dd><dd><code>chronology</code> - the chronology, null means ISO default</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the instant is invalid</dd></dl>
</li>
</ul>
<a name="YearMonth(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(int&nbsp;year,
         int&nbsp;monthOfYear)</pre>
<div class="block">Constructs a YearMonth with specified year and month
 using <code>ISOChronology</code>.
 <p>
 The constructor uses the no time zone initialising the fields as provided.
 Once the constructor is complete, all further calculations
 are performed without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>year</code> - the year</dd><dd><code>monthOfYear</code> - the month of the year</dd></dl>
</li>
</ul>
<a name="YearMonth(int, int, org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>YearMonth</h4>
<pre>public&nbsp;YearMonth(int&nbsp;year,
         int&nbsp;monthOfYear,
         <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</pre>
<div class="block">Constructs an instance set to the specified year and month
 using the specified chronology, whose zone is ignored.
 <p>
 If the chronology is null, <code>ISOChronology</code> is used.
 <p>
 The constructor uses the time zone of the chronology specified.
 Once the constructor is complete, all further calculations are performed
 without reference to a time-zone (by switching to UTC).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>year</code> - the year</dd><dd><code>monthOfYear</code> - the month of the year</dd><dd><code>chronology</code> - the chronology, null means ISOChronology in the default zone</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="now()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>now</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;now()</pre>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using <code>ISOChronology</code> in the default time zone.
 The resulting object does not use the zone.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the current year-month, not null</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="now(org.joda.time.DateTimeZone)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>now</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;now(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</pre>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using <code>ISOChronology</code> in the specified time zone.
 The resulting object does not use the zone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zone</code> - the time zone, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the current year-month, not null</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="now(org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>now</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;now(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chronology)</pre>
<div class="block">Obtains a <code>YearMonth</code> set to the current system millisecond time
 using the specified chronology.
 The resulting object does not use the zone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>chronology</code> - the chronology, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the current year-month, not null</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="parse(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parse</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;parse(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
<div class="block">Parses a <code>YearMonth</code> from the specified string.
 <p>
 This uses <a href="../../../org/joda/time/format/ISODateTimeFormat.html#localDateParser()"><code>ISODateTimeFormat.localDateParser()</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - the string to parse, not null</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="parse(java.lang.String, org.joda.time.format.DateTimeFormatter)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parse</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;parse(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
              <a href="../../../org/joda/time/format/DateTimeFormatter.html" title="class in org.joda.time.format">DateTimeFormatter</a>&nbsp;formatter)</pre>
<div class="block">Parses a <code>YearMonth</code> from the specified string using a formatter.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - the string to parse, not null</dd><dd><code>formatter</code> - the formatter to use, not null</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="fromCalendarFields(java.util.Calendar)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromCalendarFields</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;fromCalendarFields(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</a>&nbsp;calendar)</pre>
<div class="block">Constructs a YearMonth from a <code>java.util.Calendar</code>
 using exactly the same field values avoiding any time zone effects.
 <p>
 Each field is queried from the Calendar and assigned to the YearMonth.
 <p>
 This factory method ignores the type of the calendar and always
 creates a YearMonth with ISO chronology. It is expected that you
 will only pass in instances of <code>GregorianCalendar</code> however
 this is not validated.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>calendar</code> - the Calendar to extract fields from</dd>
<dt><span class="strong">Returns:</span></dt><dd>the created YearMonth, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the calendar is null</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the year or month is invalid for the ISO chronology</dd></dl>
</li>
</ul>
<a name="fromDateFields(java.util.Date)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromDateFields</h4>
<pre>public static&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;fromDateFields(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;date)</pre>
<div class="block">Constructs a YearMonth from a <code>java.util.Date</code>
 using exactly the same field values avoiding any time zone effects.
 <p>
 Each field is queried from the Date and assigned to the YearMonth.
 <p>
 This factory method always creates a YearMonth with ISO chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>date</code> - the Date to extract fields from</dd>
<dt><span class="strong">Returns:</span></dt><dd>the created YearMonth, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the calendar is null</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the year or month is invalid for the ISO chronology</dd></dl>
</li>
</ul>
<a name="size()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<div class="block">Gets the number of fields in this partial, which is two.
 The supported fields are Year and MonthOfYear.
 Note that only these fields may be queried.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#size()">size</a></code>&nbsp;in interface&nbsp;<code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the field count, two</dd></dl>
</li>
</ul>
<a name="getField(int, org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getField</h4>
<pre>protected&nbsp;<a href="../../../org/joda/time/DateTimeField.html" title="class in org.joda.time">DateTimeField</a>&nbsp;getField(int&nbsp;index,
                     <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;chrono)</pre>
<div class="block">Gets the field for a specific index in the chronology specified.
 <p>
 This method must not use any instance variables.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getField(int,%20org.joda.time.Chronology)">getField</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - the index to retrieve</dd><dd><code>chrono</code> - the chronology to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>the field, never null</dd></dl>
</li>
</ul>
<a name="getFieldType(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFieldType</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>&nbsp;getFieldType(int&nbsp;index)</pre>
<div class="block">Gets the field type at the specified index.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#getFieldType(int)">getFieldType</a></code>&nbsp;in interface&nbsp;<code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getFieldType(int)">getFieldType</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - the index to retrieve</dd>
<dt><span class="strong">Returns:</span></dt><dd>the field at the specified index, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd></dl>
</li>
</ul>
<a name="getFieldTypes()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFieldTypes</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[]&nbsp;getFieldTypes()</pre>
<div class="block">Gets an array of the field type of each of the fields that this partial supports.
 <p>
 The fields are returned largest to smallest, Year, Month.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getFieldTypes()">getFieldTypes</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of field types (cloned), largest to smallest, never null</dd></dl>
</li>
</ul>
<a name="withChronologyRetainFields(org.joda.time.Chronology)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withChronologyRetainFields</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withChronologyRetainFields(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a>&nbsp;newChronology)</pre>
<div class="block">Returns a copy of this year-month with the specified chronology.
 This instance is immutable and unaffected by this method call.
 <p>
 This method retains the values of the fields, thus the result will
 typically refer to a different instant.
 <p>
 The time zone of the specified chronology is ignored, as YearMonth
 operates without a time zone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>newChronology</code> - the new chronology, null means ISO</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this year-month with a different chronology, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the values are invalid for the new chronology</dd></dl>
</li>
</ul>
<a name="withField(org.joda.time.DateTimeFieldType, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withField</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withField(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>&nbsp;fieldType,
                  int&nbsp;value)</pre>
<div class="block">Returns a copy of this year-month with the specified field set to a new value.
 <p>
 For example, if the field type is <code>monthOfYear</code> then the month
 would be changed in the returned instance.
 <p>
 These three lines are equivalent:
 <pre>
 YearMonth updated = ym.withField(DateTimeFieldType.monthOfYear(), 6);
 YearMonth updated = ym.monthOfYear().setCopy(6);
 YearMonth updated = ym.property(DateTimeFieldType.monthOfYear()).setCopy(6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to set, not null</dd><dd><code>value</code> - the value to set</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field set, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd></dl>
</li>
</ul>
<a name="withFieldAdded(org.joda.time.DurationFieldType, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withFieldAdded</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withFieldAdded(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a>&nbsp;fieldType,
                       int&nbsp;amount)</pre>
<div class="block">Returns a copy of this year-month with the value of the specified field increased.
 <p>
 If the addition is zero, then <code>this</code> is returned.
 <p>
 These three lines are equivalent:
 <pre>
 YearMonth added = ym.withFieldAdded(DurationFieldType.months(), 6);
 YearMonth added = ym.plusMonths(6);
 YearMonth added = ym.monthOfYear().addToCopy(6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to add to, not null</dd><dd><code>amount</code> - the amount to add</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field updated, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new date-time exceeds the capacity</dd></dl>
</li>
</ul>
<a name="withPeriodAdded(org.joda.time.ReadablePeriod, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPeriodAdded</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withPeriodAdded(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period,
                        int&nbsp;scalar)</pre>
<div class="block">Returns a copy of this year-month with the specified period added.
 <p>
 If the addition is zero, then <code>this</code> is returned.
 Fields in the period that aren't present in the partial are ignored.
 <p>
 This method is typically used to add multiple copies of complex
 period instances. Adding one field is best achieved using methods
 like <a href="../../../org/joda/time/YearMonth.html#withFieldAdded(org.joda.time.DurationFieldType,%20int)"><code>withFieldAdded(DurationFieldType, int)</code></a>
 or <a href="../../../org/joda/time/YearMonth.html#plusYears(int)"><code>plusYears(int)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the period to add to this one, null means zero</dd><dd><code>scalar</code> - the amount of times to add, such as -1 to subtract once</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period added, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new date-time exceeds the capacity</dd></dl>
</li>
</ul>
<a name="plus(org.joda.time.ReadablePeriod)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plus</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;plus(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period)</pre>
<div class="block">Returns a copy of this year-month with the specified period added.
 <p>
 If the amount is zero or null, then <code>this</code> is returned.
 <p>
 This method is typically used to add complex period instances.
 Adding one field is best achieved using methods
 like <a href="../../../org/joda/time/YearMonth.html#plusYears(int)"><code>plusYears(int)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the duration to add to this one, null means zero</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period added, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new year-month exceeds the capacity</dd></dl>
</li>
</ul>
<a name="plusYears(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plusYears</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;plusYears(int&nbsp;years)</pre>
<div class="block">Returns a copy of this year-month plus the specified number of years.
 <p>
 This year-month instance is immutable and unaffected by this method call.
 <p>
 The following three lines are identical in effect:
 <pre>
 YearMonth added = ym.plusYears(6);
 YearMonth added = ym.plus(Period.years(6));
 YearMonth added = ym.withFieldAdded(DurationFieldType.years(), 6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>years</code> - the amount of years to add, may be negative</dd>
<dt><span class="strong">Returns:</span></dt><dd>the new year-month plus the increased years, never null</dd></dl>
</li>
</ul>
<a name="plusMonths(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plusMonths</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;plusMonths(int&nbsp;months)</pre>
<div class="block">Returns a copy of this year-month plus the specified number of months.
 <p>
 This year-month instance is immutable and unaffected by this method call.
 <p>
 The following three lines are identical in effect:
 <pre>
 YearMonth added = ym.plusMonths(6);
 YearMonth added = ym.plus(Period.months(6));
 YearMonth added = ym.withFieldAdded(DurationFieldType.months(), 6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>months</code> - the amount of months to add, may be negative</dd>
<dt><span class="strong">Returns:</span></dt><dd>the new year-month plus the increased months, never null</dd></dl>
</li>
</ul>
<a name="minus(org.joda.time.ReadablePeriod)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;minus(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a>&nbsp;period)</pre>
<div class="block">Returns a copy of this year-month with the specified period taken away.
 <p>
 If the amount is zero or null, then <code>this</code> is returned.
 <p>
 This method is typically used to subtract complex period instances.
 Subtracting one field is best achieved using methods
 like <a href="../../../org/joda/time/YearMonth.html#minusYears(int)"><code>minusYears(int)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the period to reduce this instant by</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period taken away, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new year-month exceeds the capacity</dd></dl>
</li>
</ul>
<a name="minusYears(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minusYears</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;minusYears(int&nbsp;years)</pre>
<div class="block">Returns a copy of this year-month minus the specified number of years.
 <p>
 This year-month instance is immutable and unaffected by this method call.
 <p>
 The following three lines are identical in effect:
 <pre>
 YearMonth subtracted = ym.minusYears(6);
 YearMonth subtracted = ym.minus(Period.years(6));
 YearMonth subtracted = ym.withFieldAdded(DurationFieldType.years(), -6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>years</code> - the amount of years to subtract, may be negative</dd>
<dt><span class="strong">Returns:</span></dt><dd>the new year-month minus the increased years, never null</dd></dl>
</li>
</ul>
<a name="minusMonths(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minusMonths</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;minusMonths(int&nbsp;months)</pre>
<div class="block">Returns a copy of this year-month minus the specified number of months.
 <p>
 This year-month instance is immutable and unaffected by this method call.
 <p>
 The following three lines are identical in effect:
 <pre>
 YearMonth subtracted = ym.minusMonths(6);
 YearMonth subtracted = ym.minus(Period.months(6));
 YearMonth subtracted = ym.withFieldAdded(DurationFieldType.months(), -6);
 </pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>months</code> - the amount of months to subtract, may be negative</dd>
<dt><span class="strong">Returns:</span></dt><dd>the new year-month minus the increased months, never null</dd></dl>
</li>
</ul>
<a name="toLocalDate(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLocalDate</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/LocalDate.html" title="class in org.joda.time">LocalDate</a>&nbsp;toLocalDate(int&nbsp;dayOfMonth)</pre>
<div class="block">Converts this object to a LocalDate with the same year-month and chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dayOfMonth</code> - the day of month to use, valid for chronology, such as 1-31 for ISO</dd>
<dt><span class="strong">Returns:</span></dt><dd>a LocalDate with the same year-month and chronology, never null</dd></dl>
</li>
</ul>
<a name="toInterval()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toInterval</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/Interval.html" title="class in org.joda.time">Interval</a>&nbsp;toInterval()</pre>
<div class="block">Converts this object to an Interval representing the whole month.
 <p>
 The interval will use the chronology of the year-month in the default zone.
 <p>
 This instance is immutable and unaffected by this method call.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an interval over the month, never null</dd></dl>
</li>
</ul>
<a name="toInterval(org.joda.time.DateTimeZone)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toInterval</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/Interval.html" title="class in org.joda.time">Interval</a>&nbsp;toInterval(<a href="../../../org/joda/time/DateTimeZone.html" title="class in org.joda.time">DateTimeZone</a>&nbsp;zone)</pre>
<div class="block">Converts this object to an Interval representing the whole month.
 <p>
 The interval will use the chronology of the year-month in the specified zone.
 <p>
 This instance is immutable and unaffected by this method call.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zone</code> - the zone to get the Interval in, null means default</dd>
<dt><span class="strong">Returns:</span></dt><dd>an interval over the month, never null</dd></dl>
</li>
</ul>
<a name="getYear()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getYear</h4>
<pre>public&nbsp;int&nbsp;getYear()</pre>
<div class="block">Get the year field value.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the year</dd></dl>
</li>
</ul>
<a name="getMonthOfYear()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMonthOfYear</h4>
<pre>public&nbsp;int&nbsp;getMonthOfYear()</pre>
<div class="block">Get the month of year field value.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the month of year</dd></dl>
</li>
</ul>
<a name="withYear(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withYear</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withYear(int&nbsp;year)</pre>
<div class="block">Returns a copy of this year-month with the year field updated.
 <p>
 YearMonth is immutable, so there are no set methods.
 Instead, this method returns a new instance with the value of
 year changed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>year</code> - the year to set</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this object with the field set, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is invalid</dd></dl>
</li>
</ul>
<a name="withMonthOfYear(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withMonthOfYear</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.html" title="class in org.joda.time">YearMonth</a>&nbsp;withMonthOfYear(int&nbsp;monthOfYear)</pre>
<div class="block">Returns a copy of this year-month with the month of year field updated.
 <p>
 YearMonth is immutable, so there are no set methods.
 Instead, this method returns a new instance with the value of
 month of year changed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>monthOfYear</code> - the month of year to set</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this object with the field set, never null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is invalid</dd></dl>
</li>
</ul>
<a name="property(org.joda.time.DateTimeFieldType)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>property</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a>&nbsp;property(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>&nbsp;type)</pre>
<div class="block">Gets the property object for the specified type, which contains
 many useful methods.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the field type to get the property for</dd>
<dt><span class="strong">Returns:</span></dt><dd>the property object</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the field is null or unsupported</dd></dl>
</li>
</ul>
<a name="year()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>year</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a>&nbsp;year()</pre>
<div class="block">Get the year field property which provides access to advanced functionality.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the year property</dd></dl>
</li>
</ul>
<a name="monthOfYear()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>monthOfYear</h4>
<pre>public&nbsp;<a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time">YearMonth.Property</a>&nbsp;monthOfYear()</pre>
<div class="block">Get the month of year field property which provides access to advanced functionality.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the month of year property</dd></dl>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<div class="block">Output the year-month in ISO8601 format (yyyy-MM).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#toString()">toString</a></code>&nbsp;in interface&nbsp;<code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>ISO8601 time formatted string.</dd></dl>
</li>
</ul>
<a name="toString(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</pre>
<div class="block">Output the year-month using the specified format pattern.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/BasePartial.html#toString(java.lang.String)">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/joda/time/base/BasePartial.html" title="class in org.joda.time.base">BasePartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>pattern</code> - the pattern specification, null means use <code>toString</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><code>DateTimeFormat</code></a></dd></dl>
</li>
</ul>
<a name="toString(java.lang.String, java.util.Locale)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
              <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;locale)
                throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Output the year-month using the specified format pattern.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/BasePartial.html#toString(java.lang.String,%20java.util.Locale)">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../../org/joda/time/base/BasePartial.html" title="class in org.joda.time.base">BasePartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>pattern</code> - the pattern specification, null means use <code>toString</code></dd><dd><code>locale</code> - Locale to use, null means default</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><code>DateTimeFormat</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/YearMonth.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/joda/time/Weeks.html" title="class in org.joda.time"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/joda/time/YearMonth.Property.html" title="class in org.joda.time"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/joda/time/YearMonth.html" target="_top">Frames</a></li>
<li><a href="YearMonth.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2014 <a href="http://www.joda.org">Joda.org</a>. All rights reserved.</small></p>
</body>
</html>