Java Time Now getThaiCurrentTime()

Here you can find the source of getThaiCurrentTime()

Description

get Thai Current Time

License

Apache License

Declaration

public static String getThaiCurrentTime() 

Method Source Code

//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*/
}

Related

  1. getNowWithLocal(boolean ifdatetime)
  2. getNowYearMonth()
  3. getNowYMD()
  4. getSpecifiedDateTime_235959(Date curDate)
  5. getStrCurrentStrTime()
  6. getTimeFromCurrent(long l)
  7. getTimeString()
  8. getTimeString()
  9. getTimeString()