Groovy web console

subscribe to the feed Subscribe
to this


Published 1 month ago by enterit
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.SimpleDateFormat
df = new SimpleDateFormat('EEE, d MMM yyyy G HH:mm:ss Z')
df.timeZone = TimeZone.getTimeZone('UTC')
println df.format(new Date(Long.MIN_VALUE))
println df.format(new Date(0))
println df.format(new Date(Long.MAX_VALUE))