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
//Cihaza ait lokal zaman dilimini bulalım | |
Calendar cal = Calendar.getInstance(); | |
TimeZone tz = cal.getTimeZone(); | |
//Parse işlemi | |
String dateStr = jsonObject.getString("date"); | |
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); | |
sdf.setTimeZone(tz); | |
Date dateObject = sdf.parse(dateStr); |
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
// Çalışan processlerin görüntülenmesi | |
private static void showRunningProcesses() | |
{ | |
try | |
{ | |
String line; | |
//Windows işletim sistemi için alttaki satır kullanılmalıdır. | |
Process p = Runtime.getRuntime().exec(System.getenv("windir") +"\system32\"+"tasklist.exe"); | |