Last active
September 7, 2016 22:43
-
-
Save dwijnand/0f1d14529923756f8fb8 to your computer and use it in GitHub Desktop.
nowIso8601 without JodaTime
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 nowIso8601() = { | |
val df = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'") | |
df setTimeZone (java.util.TimeZone getTimeZone "UTC") | |
df format new java.util.Date() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment