Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72D0710212 for ; Mon, 21 Oct 2013 20:04:21 +0000 (UTC) Received: (qmail 57779 invoked by uid 500); 21 Oct 2013 20:00:30 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 57458 invoked by uid 500); 21 Oct 2013 20:00:13 -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 57094 invoked by uid 99); 21 Oct 2013 19:59:56 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 19:59:56 +0000 Date: Mon, 21 Oct 2013 19:59:56 +0000 (UTC) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-556) Add methods for constructing dates to DateUtils 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:all-tabpanel ] Henri Yandell updated LANG-556: ------------------------------- Fix Version/s: (was: Commons Time?) 4.0 Assuming the new date/time library comes out with Java 8, and that Lang 4.0 is 8 dependent, we'll revisit all lang.time JIRA issues then. > 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 > Components: lang.time.* > Reporter: Ben Arnold > Priority: Minor > Fix For: 4.0 > > > 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 was sent by Atlassian JIRA (v6.1#6144)