Adding sypet to repo
[Benchmarks_CSolver.git] / sypet-non-incremental / benchmarks / joda / 20 / Solution.java
1 import org.joda.time.DateTime;
2 import org.joda.time.format.DateTimeFormat;
3 import org.joda.time.format.DateTimeFormatter;
4
5 public class Solution {
6
7     public static int daysOfMonth(String arg0, String arg1) {
8         DateTimeFormatter v1 = DateTimeFormat.forPattern(arg1);
9         DateTime v2 = DateTime.parse(arg0, v1);
10         DateTime.Property v3 = v2.dayOfMonth();
11         int v4 = v3.getMaximumValue();
12         return v4;
13     }
14
15 }