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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 非常喜欢三公子的人生记录仪这个公众号。三公子跟我有点像,都是80后,都读了研究生,毕业后都在三线城市做公务员,过着...
    刘金玉阅读 5,011评论 12 7
  • 一个人从牙牙学语到出口成章,一生中不知道要说多少话,对说话的方式方法有很多形容词。有“妙语如珠,能说会道,喋...
    南溪木木阅读 5,115评论 0 1
  • 现在去超市基本就是买鸡蛋,鸡胸脯,龙利鱼,酸奶。教练说我蛋白质含量不够,现在又不想吃蛋白粉,只能食补了。 锻炼有一...
    linaya_阅读 1,405评论 0 0

友情链接更多精彩内容