'Call SimpleDateFormat From JNI

im not much familiar with Jni

can anyone help to convert this code in Jni.

public static void getTime(String zone,String format){
    SimpleDateFormat dateFormat = new SimpleDateFormat(format);
    dateFormat.setTimeZone(TimeZone.getTimeZone(zone));
    String statusDate = dateFormat.format(new Date());
    System.out.println(statusDate);
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source