Android开发时间操作类

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

/**
* 时间操作类
* Created by Alan on 2016/05/16 0016.
*/
public class DateUtility {
public static final String DEFAULT = “yyyy-MM-dd HH:mm:ss”;
public static final String LONG = “yyyy年MM月dd日 HH时mm分ss秒”;
public static final String SHORT = “yyyy-MM-dd HH:mm”;
public static final String DATE = “yyyy-MM-dd”;
public static final String TIME = “HH:mm:ss”;
public static final String FULL = “yyyy-MM-dd HH:mm:ss EEEE”;

public static final String WEEK = “EEEE”;
private static SimpleDateFormat sdf;

 
Copyright © 2008-2021 lanxinbase.com Rights Reserved. | 粤ICP备14086738号-3 |