Created
August 28, 2014 13:32
-
-
Save tobiasschuerg/8c21a4742ea7dbc5d6ea to your computer and use it in GitHub Desktop.
Für Nico
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
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