commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-556) Add methods for constructing dates to DateUtils
Date Thu, 10 Dec 2009 12:20:18 GMT

    [ 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.


Mime
View raw message