java.util.Date

public Date() {
    this(System.currentTimeMillis());
}
public Date(long date) {
    fastTime = date;
}
@Deprecated
public Date(int year, int month, int date) {
    this(year, month, date, 0, 0, 0);
}
@Deprecated
public Date(int year, int month, int date, int hrs, int min) {
    this(year, month, date, hrs, min, 0);
}
@Deprecated
public Date(int year, int month, int date, int hrs, int min, int sec) {
    int y = year + 1900;
    // month is 0-based. So we have to normalize month to support Long.MAX_VALUE.
    if (month >= 12) {
        y += month / 12;
        month %= 12;
    } else if (month < 0) {
         y += CalendarUtils.floorDivide(month, 12);
        month = CalendarUtils.mod(month, 12);
    }
    BaseCalendar cal = getCalendarSystem(y);
    cdate = (BaseCalendar.Date) cal.newCalendarDate(TimeZone.getDefaultRef());
    cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0);
    getTimeImpl();
    cdate = null;
}

system.currenttimemillis

you can see it compare to system.currenttimemillis,waste time

find zheng minute

system.currenttimemillis % (60*1000)<1000

this will get the zheng minute

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 非常喜歡三公子的人生記錄儀這個公眾號。三公子跟我有點像,都是80后,都讀了研究生,畢業(yè)后都在三線城市做公務(wù)員,過著...
    劉金玉閱讀 1,312評論 12 7
  • 一個人從牙牙學(xué)語到出口成章,一生中不知道要說多少話,對說話的方式方法有很多形容詞。有“妙語如珠,能說會道,喋...
    南溪木木閱讀 1,373評論 0 1
  • 現(xiàn)在去超市基本就是買雞蛋,雞胸脯,龍利魚,酸奶。教練說我蛋白質(zhì)含量不夠,現(xiàn)在又不想吃蛋白粉,只能食補了。 鍛煉有一...
    linaya_閱讀 192評論 0 0

友情鏈接更多精彩內(nèi)容