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 5014E200B6E for ; Sun, 21 Aug 2016 16:27:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4EA5F160AAA; Sun, 21 Aug 2016 14:27:22 +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 B9586160A8E for ; Sun, 21 Aug 2016 16:27:21 +0200 (CEST) Received: (qmail 16280 invoked by uid 500); 21 Aug 2016 14:27:20 -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 16265 invoked by uid 99); 21 Aug 2016 14:27:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2016 14:27:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A3C8D2C0150 for ; Sun, 21 Aug 2016 14:27:20 +0000 (UTC) Date: Sun, 21 Aug 2016 14:27:20 +0000 (UTC) From: "Derek C. Ashmore (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (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: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 21 Aug 2016 14:27:22 -0000 [ https://issues.apache.org/jira/browse/LANG-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Derek C. Ashmore closed LANG-1246. ---------------------------------- Resolution: Won't Fix Deemed not appropriate > 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 > > I've frequently had a need to convert a Date (java.util) into a XMLGregorianCalendar (javax.xml.datatype). This need frequently comes up when coding SOAP Web Service clients. > Specifically, I propose a minor addition to DateUtils as follows: > public static XMLGregorianCalendar toXMLGregorianCalendar (final Date date) > 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)