亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? dateformatutilstest.java~18~

?? 很不錯(cuò)的結(jié)合DateTime的綜合例子
?? JAVA~18~
字號(hào):
package com.lianjiping.democ;

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

public class DateFormatUtilsTest {
    public static void main(String[] args) {
        long currentTimeMillis = DateFormatUtils.getCurrentTimeMillis();
        System.out.println("系統(tǒng)的當(dāng)前時(shí)間(毫秒): " + currentTimeMillis);

        Date currentDate = DateFormatUtils.getCurrentDate();
        System.out.println("系統(tǒng)的當(dāng)前時(shí)間: " + currentDate);

        String currentFormatDate = DateFormatUtils.getCurrentFormatDate();
        System.out.println("系統(tǒng)的當(dāng)前日期(默認(rèn)格式): " + currentFormatDate);

        String currentFormatDateTime = DateFormatUtils.getCurrentFormatDateTime();
        System.out.println("系統(tǒng)的當(dāng)前日期時(shí)間(默認(rèn)格式): " + currentFormatDateTime);

        String currentCustomFomatDateTime12 = DateFormatUtils.
                                              getCurrentCustomFormatDateTime("yyyy-MM-dd HH:mm ");
        System.out.println("系統(tǒng)的當(dāng)前日期時(shí)間(指定格式返回): " + currentCustomFomatDateTime12);

        String formatDate = DateFormatUtils.formatDate(currentDate, "yyMM");
        System.out.println("輸入日期(指定格式返回): " + formatDate);

        String formatDate1 = DateFormatUtils.formatDate(currentDate,
                "yyyyMMdd ", new Locale("zh", "CN", ""));
        System.out.println("輸入日期(指定格式返回): " + formatDate1);

        Date strToDate = DateFormatUtils.parseStrToDate(currentFormatDateTime);
        System.out.println("按照默認(rèn)格式轉(zhuǎn)換為Date: " + strToDate);

        Date strToDateTime = DateFormatUtils.parseStrToDateTime(
                currentFormatDateTime);
        System.out.println("按照默認(rèn)格式轉(zhuǎn)換為Date: " + strToDateTime);

        Calendar cal = DateFormatUtils.parseStrToCalendar(currentFormatDateTime);
        System.out.println("按照默認(rèn)格式轉(zhuǎn)換為Calender: " +
                           cal.get(Calendar.YEAR) + "年" +
                           cal.get(Calendar.MONTH) + "月" +
                           cal.get(Calendar.DAY_OF_MONTH) + "日" +
                           cal.get(Calendar.HOUR_OF_DAY) + ":" +
                           cal.get(Calendar.MINUTE) + ":" +
                           cal.get(Calendar.SECOND));

        String dateTimeStr = DateFormatUtils.parseDateStrToDateTimeStr(
                currentFormatDate);
        System.out.println("日期字符串轉(zhuǎn)換成日期時(shí)間字符串: " + currentFormatDate +
                           " = " + dateTimeStr);

        Date strToFormatDate = DateFormatUtils.parseStrToCustomPatternDate(
                currentFormatDateTime, DateFormatUtils.DATE_TIME_FORMAT);
        Date strToFormatDateTime = DateFormatUtils.parseStrToCustomPatternDate(
                currentFormatDateTime, "");
        System.out.println("Test 12: Parse String To \n" +
                           " \t\tcustom pattern Date: " + strToFormatDate +
                           " \n " +
                           " \t\tcustom pattern Date without pattern: " +
                           strToFormatDateTime);
        System.out.println("Test 13: " + DateFormatUtils.formatDate(strToFormatDateTime,
                DateFormatUtils.DATE_TIME_FORMAT));

        String convertPattern = DateFormatUtils.convertDatePattern(
                currentFormatDateTime, DateFormatUtils.DATE_TIME_FORMAT,
                DateFormatUtils.DATE_TIME_FORMAT_14);
        System.out.println("Test 14: Pattern From: " +
                           currentFormatDateTime +
                           " \n\t\tpattern to: " + convertPattern);

        Date addDays = DateFormatUtils.addDays(strToDate, 35);
        System.out.println("Test 15: " + strToDate +
                           ", After Add 30 Days, \n\t The Time Is: " +
                           addDays);
        Date minusDays = DateFormatUtils.minusDays(addDays, 35);
        System.out.println("Test 16: " + addDays +
                           ", After Minus 30 Days, \n\t The Time Is: " +
                           minusDays);

        String addYear = DateFormatUtils.addDate(currentFormatDateTime,
                                                 DateFormatUtils.
                                                 DATE_TIME_FORMAT, "year", 2);
        String addMonth = DateFormatUtils.addDate(currentFormatDateTime,
                                                  DateFormatUtils.
                                                  DATE_TIME_FORMAT, "month",
                                                  2);
        String addDay = DateFormatUtils.addDate(currentFormatDateTime,
                                                DateFormatUtils.
                                                DATE_TIME_FORMAT, "day", 2);
        String addHour = DateFormatUtils.addDate(currentFormatDateTime,
                                                 DateFormatUtils.
                                                 DATE_TIME_FORMAT, "hour", 2);
        String addMinute = DateFormatUtils.addDate(currentFormatDateTime,
                DateFormatUtils.DATE_TIME_FORMAT, "minute", 2);
        String minusWeek = DateFormatUtils.minusDate(currentFormatDateTime,
                DateFormatUtils.DATE_TIME_FORMAT, "week", 2);
        String minusSecond = DateFormatUtils.minusDate(currentFormatDateTime,
                DateFormatUtils.DATE_TIME_FORMAT, "second", 2);
        System.out.println("按時(shí)間格式相減: " + currentFormatDateTime +
                           " \n\t Add 2 Years: " + addYear +
                           " \n\t Add 2 Month: " + addMonth +
                           " \n\t Add 2 Days: " + addDay +
                           " \n\t Add 2 Hours: " + addHour +
                           " \n\t Add 2 Minutes: " + addMinute +
                           " \n\t Minus 2 Eeeks: " + minusWeek +
                           " \n\t Minus 2 Deconds: " + minusSecond);

        System.out.println("日期大小比較: " +
                           " \n\t AddMonth Compare To AddYear: " +
                           DateFormatUtils.compareDate(addMonth, addYear,
                DateFormatUtils.DATE_TIME_FORMAT) +
                           " \n\t AddMonth Compare To AddDay: " +
                           DateFormatUtils.compareDate(addMonth, addDay,
                DateFormatUtils.DATE_TIME_FORMAT) +
                           " \n\t AddMonth Compare To AddMonth: " +
                           DateFormatUtils.compareDate(addMonth, addMonth,
                DateFormatUtils.DATE_TIME_FORMAT));

        String firstDayInMonth = DateFormatUtils.getFirstDayInMonth(
                currentFormatDateTime);
        System.out.println("本月的第一天: " + firstDayInMonth);

        String lastDayInMonth = DateFormatUtils.getLastDayInMonth(
                currentFormatDateTime);
        System.out.println("本月的最后一天: " + lastDayInMonth);

        String firstDayInWeek = DateFormatUtils.getFirstDayInWeek(
                currentFormatDateTime);
        System.out.println("本周的第一天: " + firstDayInWeek);

        String lastDayInWeek = DateFormatUtils.getLastDayInWeek(
                currentFormatDateTime);
        System.out.println("本周的最后一天: " + lastDayInWeek);
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品蜜臀在线一区尤物| 国产成人在线观看| 国产精品久久久久久久久动漫| 成人黄色在线看| 国产在线看一区| 精久久久久久久久久久| 偷拍一区二区三区四区| 亚洲一区二区在线观看视频| 亚洲国产视频在线| 亚洲精选视频在线| 中文字幕亚洲欧美在线不卡| 中文字幕一区免费在线观看| 国产欧美日韩在线视频| 26uuu亚洲综合色欧美| 久久影视一区二区| 久久久久久久久岛国免费| 日韩欧美中文字幕一区| 在线播放中文一区| 69堂国产成人免费视频| 久久亚洲一区二区三区明星换脸 | 午夜精品久久久久久久| 亚洲精品国产a久久久久久| 亚洲伊人伊色伊影伊综合网| 一区二区欧美在线观看| 一区二区三区国产| 久久精品国内一区二区三区| 蜜臀av在线播放一区二区三区| 中文字幕欧美一区| 亚洲成人中文在线| 久久精品国产精品亚洲综合| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日本sm残虐另类| 亚洲已满18点击进入久久| 午夜精品免费在线观看| 五月激情综合网| 久久不见久久见中文字幕免费| 成人a级免费电影| 色综合咪咪久久| 91精品国产入口| ㊣最新国产の精品bt伙计久久| 洋洋av久久久久久久一区| 青青草91视频| 在线一区二区视频| 精品国产精品一区二区夜夜嗨| 国产欧美日韩在线看| 青娱乐精品视频| 成人av动漫在线| 91精品国产欧美日韩| 亚洲精品国产精华液| 免费观看日韩电影| 91浏览器打开| 欧美国产一区在线| 午夜精品久久久久影视| 国产成人在线视频网站| 日韩视频免费直播| 一区二区三区毛片| 麻豆精品视频在线观看免费 | 欧美一级夜夜爽| 中文子幕无线码一区tr| 亚洲精品视频自拍| 国产麻豆精品在线| 欧美美女一区二区| 中文字幕欧美激情| 精品一区二区精品| 欧美日韩三级在线| 亚洲精品免费看| 亚洲一区二区三区在线| 成人中文字幕合集| 日韩欧美高清在线| 亚洲国产精品人人做人人爽| 色综合中文综合网| 欧美一区二区三区视频| 亚洲最大成人综合| 国产福利视频一区二区三区| 欧美日本在线一区| 日精品一区二区三区| 在线亚洲人成电影网站色www| 26uuu另类欧美| 国产一区福利在线| 欧美哺乳videos| 奇米一区二区三区av| 日韩亚洲欧美一区| 日本大胆欧美人术艺术动态| 欧美三级韩国三级日本一级| 亚洲综合成人在线| 欧美亚洲国产一区二区三区| 亚洲丝袜另类动漫二区| 国产激情一区二区三区| 亚洲精品一区二区三区蜜桃下载| 日韩—二三区免费观看av| 国产成人免费在线| 亚洲蜜臀av乱码久久精品蜜桃| 国产成人免费xxxxxxxx| 制服.丝袜.亚洲.中文.综合| 美女一区二区三区| 久久亚洲二区三区| 蜜乳av一区二区三区| 久久精品免视看| 国产精品性做久久久久久| 欧美日韩成人激情| 国产精品中文字幕一区二区三区| 日韩欧美国产三级| 久久成人免费网| 综合久久久久久久| 欧美性一二三区| 亚洲成人777| 国产午夜一区二区三区| 不卡的av电影| 欧美日韩一级黄| 国产成a人无v码亚洲福利| 中文字幕中文字幕中文字幕亚洲无线| 99re6这里只有精品视频在线观看| 亚洲精品视频观看| 欧美日精品一区视频| 国产精品国产精品国产专区不片| 欧美亚洲国产一区二区三区va| 蜜桃av一区二区| 久久综合久久综合亚洲| 欧洲生活片亚洲生活在线观看| 三级欧美在线一区| 欧美大片顶级少妇| 欧美三级视频在线| 国产99久久久国产精品潘金网站| 一区二区视频免费在线观看| 日韩欧美激情一区| 日本精品视频一区二区三区| 国产精品一区二区久激情瑜伽| 亚洲欧美日本韩国| 精品国产三级a在线观看| 欧美性大战久久久久久久| 激情久久五月天| 亚洲网友自拍偷拍| 一区二区三区四区激情| 国产偷国产偷亚洲高清人白洁| 在线观看亚洲a| av欧美精品.com| 日本不卡视频一二三区| 久久综合九色综合欧美亚洲| 91精品国产色综合久久不卡蜜臀 | 精品免费国产二区三区| a美女胸又www黄视频久久| 免费成人美女在线观看| 亚洲地区一二三色| 亚洲天堂成人在线观看| 91丨porny丨国产入口| 国产九九视频一区二区三区| 亚洲午夜在线电影| 综合久久国产九一剧情麻豆| 国产精品久久久久国产精品日日| 日韩欧美国产不卡| 欧美中文字幕久久| 欧美午夜精品免费| a级高清视频欧美日韩| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲一区二区中文在线| 亚洲精选一二三| 亚洲精品高清在线观看| 亚洲日本在线看| 亚洲欧洲日韩综合一区二区| 国产精品狼人久久影院观看方式| 精品欧美一区二区久久| 欧美精品日韩一区| 91精品国产综合久久久久久| 欧美视频在线播放| 欧美午夜精品久久久久久孕妇| 欧美猛男男办公室激情| 欧美亚洲高清一区| 欧美精品一级二级三级| 欧美不卡视频一区| 欧美v国产在线一区二区三区| 欧美剧在线免费观看网站| 在线精品观看国产| 欧美久久婷婷综合色| 欧美老肥妇做.爰bbww| 欧美一区二区三区系列电影| 欧美一级精品大片| 欧美日韩久久久一区| 欧美日韩国产免费一区二区| 欧美日韩一区成人| 成人激情综合网站| 91视频国产资源| 在线播放日韩导航| 久久久久久久久久久久久女国产乱| 日韩欧美国产高清| 18欧美乱大交hd1984| 亚洲一区二区三区四区五区黄| 色婷婷av一区二区三区软件 | 日韩女优av电影| 国产午夜亚洲精品午夜鲁丝片| 亚洲婷婷综合色高清在线| 午夜精品视频一区| 成人av影视在线观看| 欧美三级日韩在线| 国产精品人妖ts系列视频| 亚洲国产wwwccc36天堂| 国产很黄免费观看久久| 欧美美女直播网站| 中文字幕亚洲在| 国产一区二区在线视频| 制服丝袜中文字幕亚洲|