Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.5.7
-
Component/s: groovy-jdk
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
GDK convenience methods to wrap SimpleDateFormat such as {{ new Date().format( 'yyyy-MM-dd' )}}.
These should probably added for Calendar too.
Would a complimentary 'parse' method be appropriate?
Activity
Thom Nichols
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | DateGDKTest.groovy [ 37368 ] | |
| Attachment | DateFormatGTK-patch.txt [ 37367 ] |
Thom Nichols
made changes -
| Patch Submitted | [Yes] | |
| Testcase included | yes | |
| Component/s | groovy-jdk [ 10750 ] |
Thom Nichols
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Thom Nichols
made changes -
| Original Estimate | 0 minutes [ 0 ] | |
| Remaining Estimate | 0 minutes [ 0 ] |
Thom Nichols
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Jim White
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Thom Nichols
made changes -
| Fix Version/s | 1.5.7 [ 14242 ] | |
| Resolution | Fixed [ 1 ] | |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
On second thought, adding methods to calendar seems a little overkill, since you could just say
calendar.time.format(...)
and DateFormat doesn't work on Calendar instances anyway.