Skip to content

Instantly share code, notes, and snippets.

@tobiasschuerg
Created August 28, 2014 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobiasschuerg/8c21a4742ea7dbc5d6ea to your computer and use it in GitHub Desktop.
Save tobiasschuerg/8c21a4742ea7dbc5d6ea to your computer and use it in GitHub Desktop.
Für Nico
import java.text.SimpleDateFormat;
import java.util.Date;
public class Timezone {
public static void main(String[] args) {
String tzOffset = new SimpleDateFormat("Z").format(new Date());
System.out.println("Your timezone offset: " + tzOffset);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment