Back to project page SimpleReader.
The source code is released under:
Apache License
If you think the Android project SimpleReader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dreamteam.app.utils; /* w ww .j a v a2 s .c o m*/ /** * @description * @author zcloud * @date 2013/11/13 */ public class DateUtils { /** * @description rfc???Tue, 08 Oct 2013 18:02:03 +0800?? * ??yy/mm/day * @param date * @return String */ public static String rfcNormalDate(String date) { String[] strs = date.split("\\s+|:"); return date; // return strs[3] + "/" + enNumberMonth(strs[2]) // + "/" + strs[1] + "-" + strs[4] // + ":" + strs[5]; } private static int enNumberMonth(String month) { String[] months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; for(int i = 0; i < months.length; i++) { if(months[i].equalsIgnoreCase(month)) return i + 1; } return 0; } public static String getDistanceTime(String year, String month, String day) { return null; } }