Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.format.Time; public class Main { /** * @return String * @throws * @Title: getTime * @Description: TODO */ public static String now() { Time nowTime = new Time("Asia/chongqing"); nowTime.setToNow(); return nowTime.format("%Y%m%d"); } }