Groovy web console

subscribe to the feed Subscribe
to this
site
timestamp (via #groovywebconsole)
tweet this snippet Tweet
this
script

timestamp

Published 6 months ago by timestampNazi
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
java.text.SimpleDateFormat sdf2 = new java.text.SimpleDateFormat("yyyy-MM-dd-HH.mm.ss.SSSSSS");sdf2.setLenient(false)
sdf2.setTimeZone(TimeZone.getTimeZone("CET"))
println sdf2.format(new Date())