Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 34241 invoked from network); 10 Dec 2009 12:20:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 12:20:42 -0000 Received: (qmail 38169 invoked by uid 500); 10 Dec 2009 12:20:42 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 38033 invoked by uid 500); 10 Dec 2009 12:20:41 -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 38013 invoked by uid 99); 10 Dec 2009 12:20:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 12:20:41 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 12:20:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF591234C1EF for ; Thu, 10 Dec 2009 04:20:18 -0800 (PST) Message-ID: <758342260.1260447618848.JavaMail.jira@brutus> Date: Thu, 10 Dec 2009 12:20:18 +0000 (UTC) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-556) Add methods for constructing dates to DateUtils In-Reply-To: <1246336969.1258662220419.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788700#action_12788700 ] Henri Yandell commented on LANG-556: ------------------------------------ What about the TimeZone methods Paul - any value in them? Any bugginess likely? [i.e. put into "Commons Time?"] > Add methods for constructing dates to DateUtils > ----------------------------------------------- > > Key: LANG-556 > URL: https://issues.apache.org/jira/browse/LANG-556 > Project: Commons Lang > Issue Type: New Feature > Reporter: Ben Arnold > Priority: Minor > > It is often really useful to be able to get a date in one line of code, particularly in unit tests. It is also handy to be able to obtain the current time in a specified timezone. > It would be great to have methods like these on DateUtils: > Date now(TimeZone) > Date nowUtc() > Date createDate(int year, int month, int day) // local time > Date createDate(int year, int month, int day, int hour, minute, int second) // local time > Date createDateUtc(int year, int month, int day) > Date createDateUtc(int year, int month, int day, int hour, minute, int second) > Date createDate(TimeZone timeZone, int year, int month, int day) > Date createDate(TimeZone timeZone, int year, int month, int day, int hour, minute, int second) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.