Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.text.format.DateFormat;

import java.util.Calendar;
import java.util.Locale;

public class Main {

    public static String getPicName() {
        new DateFormat();
        return DateFormat.format("yyyyMMddhhmmss", Calendar.getInstance(Locale.CHINA)) + ".png";
    }
}