import java.text.SimpleDateFormat
SimpleDateFormat frmt = new SimpleDateFormat('yyyyMMdd kk:mm:ss.SSS');
def timeText = obj['Trade.Time']
def dt = frmt.parse(timeText)
Calendar c = Calendar.getInstance()
c.setTime dt
c.add Calendar.HOUR_OF_DAY,-5
Category Archives: Groovy
SimpleDateFormat example
Posted by sassygrrrl
on March 2, 2010
No comments
Grails Documentation & Grails-UI Links
Posted by sassygrrrl
on December 16, 2009
No comments
Grails Documentation
The Grails Framework – Reference Documentation
Grails-UI Links
Plug-in Source:
GrailsUI Plug-in Home
Tutorials (by the GrailsUI plug-in author Matthew Taylor):
Using GrailsUI dataTable tag (see information in comments regarding conditional formatting/traffic lighting)
GrailsUI Primer
Sample code:
Grails-UI DataTable using XML for a model
Related links:
Yahoo! UI Library (YUI)
Bubbling Library (YUI Extension): Index of Official Examples
Recent Comments