Created
August 6, 2014 14:04
-
-
Save jarek-przygodzki/916a2669e0b2dcd6f49a to your computer and use it in GitHub Desktop.
Parse java.util.Date#toString output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fmt = new java.text.SimpleDateFormat('EEE MMM dd HH:mm:ss zzz yyyy', Locale.US) | |
fmt.parse('Tue Jul 01 06:00:00 GMT+01:00 2014') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment