Skip to content

Instantly share code, notes, and snippets.

@qmx
Created December 22, 2010 15:33
Show Gist options
  • Save qmx/751653 to your computer and use it in GitHub Desktop.
Save qmx/751653 to your computer and use it in GitHub Desktop.
Calendar c = Calendar.getInstance();
c.set(2010, 0, 1, 12, 0, 0);
long timestamp = c.getTimeInMillis();
Timestamp seuTimestamp = new Timestamp(timestamp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment