From 770aa21bd6c044b81d686e14354aa889ca6036c3 Mon Sep 17 00:00:00 2001
From: Adam Welc <adam.welc@oracle.com>
Date: Wed, 27 May 2015 01:53:15 -0700
Subject: [PATCH] Added POSIX formatting for two-digit year.

---
 .../truffle/r/nodes/builtin/base/DatePOSIXFunctions.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DatePOSIXFunctions.java b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DatePOSIXFunctions.java
index eca5e1ac88..e807bbea6f 100644
--- a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DatePOSIXFunctions.java
+++ b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DatePOSIXFunctions.java
@@ -582,7 +582,8 @@ public class DatePOSIXFunctions {
                          * future version the default century inferred from a 2-digit year will
                          * change’.
                          */
-                        throw RInternalError.unimplemented();
+                        builder.appendPattern("yy");
+                        break;
                     case 'Y':
                         /*
                          * Year with century. Note that whereas there was no zero in the original
-- 
GitLab