Created
October 10, 2010 09:45
-
-
Save nobusue/619111 to your computer and use it in GitHub Desktop.
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
// g100pon #74 日付の解析とフォーマット | |
def date = new Date().parse('yyyy/MM/dd HH:mm:ss', '2010/10/10 18:59:59') | |
assert date.class.name == 'java.util.Date' | |
assert date.format('yyyy/MM/dd HH:mm:ss') == '2010/10/10 18:59:59' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment