Adding sypet to repo
[Benchmarks_CSolver.git] / sypet-non-incremental / benchmarks / joda / 22 / Solution.java
diff --git a/sypet-non-incremental/benchmarks/joda/22/Solution.java b/sypet-non-incremental/benchmarks/joda/22/Solution.java
new file mode 100644 (file)
index 0000000..99e48a6
--- /dev/null
@@ -0,0 +1,13 @@
+import org.joda.time.DateTime;
+import org.joda.time.Years;
+
+public class Solution {
+
+    public static int getAge(DateTime arg0) {
+        DateTime v1 = DateTime.now();
+        Years v2 = Years.yearsBetween(arg0, v1);
+        int v3 = v2.getYears();
+        return v3;
+    }
+
+}