Here you can find the source of getThaiCurrentTime()
public static String getThaiCurrentTime()
//package com.java2s; //License from project: Apache License public class Main { public static String getThaiCurrentTime() { java.text.SimpleDateFormat thaiCurrentTime = new java.text.SimpleDateFormat( "yyyy-MM-dd HH:mm:ss", new java.util.Locale("th", "TH")); System.out.println(thaiCurrentTime.format(new java.util.Date())); return thaiCurrentTime.format(new java.util.Date()); }/*from www .ja v a2 s .co m*/ }