Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 343FA200AE4 for ; Fri, 24 Jun 2016 15:30:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 32E93160A5A; Fri, 24 Jun 2016 13:30:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7A98A160A2E for ; Fri, 24 Jun 2016 15:30:17 +0200 (CEST) Received: (qmail 75440 invoked by uid 500); 24 Jun 2016 13:30:16 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 75427 invoked by uid 99); 24 Jun 2016 13:30:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2016 13:30:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6CEDA2C1F60 for ; Fri, 24 Jun 2016 13:30:16 +0000 (UTC) Date: Fri, 24 Jun 2016 13:30:16 +0000 (UTC) From: "Derek C. Ashmore (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1246) Enhancement to add utility to convert Date to XMLGregorianCalendar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Jun 2016 13:30:18 -0000 [ https://issues.apache.org/jira/browse/LANG-1246?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15348= 257#comment-15348257 ]=20 Derek C. Ashmore commented on LANG-1246: ---------------------------------------- I can see that thought as XMLGregorianCalendar is in a javax package. Still= seems to keep in step with the stated Commons charter/mission. Is there a = better place for this utility to reside?=C2=A0 I scanned the other Commons = products and didn't find anything.=20 > Enhancement to add utility to convert Date to XMLGregorianCalendar > ------------------------------------------------------------------ > > Key: LANG-1246 > URL: https://issues.apache.org/jira/browse/LANG-1246 > Project: Commons Lang > Issue Type: Improvement > Components: lang.time.* > Reporter: Derek C. Ashmore > Priority: Minor > Fix For: 3.5 > > > I've frequently had a need to convert a Date (java.util) into a XMLGregor= ianCalendar (javax.xml.datatype). This need frequently comes up when codin= g SOAP Web Service clients. > Specifically, I propose a minor addition to DateUtils as follows: > public static XMLGregorianCalendar toXMLGregorianCalendar (final Date dat= e) > XMLGregorianCalendar has the ability to convert itself to a Date, but not= the other way around. > Rather than copy a utility to do this from project to project, I'd prefer= the utility be centralized. > A pull request is forthcoming. Thanks for looking at this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)