500天后是几几年几月几日

news/2025/2/12 20:10:20/
500天后是几几年几月几日.
package com.hzt.javase.word.day7;import java.util.Calendar;/*** @Description 500天后是几几年几月几日.* @Author hzt* @Date 2020/11/4 19:45*/
public class Demo3 {public static void main(String[] args) {Calendar c1 = Calendar.getInstance();c1.add(Calendar.DAY_OF_MONTH,500);System.out.println(c1.get(Calendar.YEAR));System.out.println((c1.get(Calendar.MONTH)+1));System.out.println(c1.get(Calendar.DAY_OF_MONTH));}
}

http://www.ppmy.cn/news/744332.html

相关文章

日期操作,前天,当天,三十天前,三十天后 ,一个月多少天

如何将当前字符串日期加一天 import datetime from datetime import datetime as d1 a "2021-04-09" null_date (d1.strptime(a, %Y-%m-%d) datetime.timedelta(days1)).strftime("%Y-%m-%d") print(null_date)当前时间 str datetime.datetime.now(…

node搭建本地https和wss服务(SSL证书安全)

node 后台 app.js配置 const express require(express) //加载express资源 const bodyParserrequire("body-parser")//一个Express中间件,用于解析HTTP请求体,获得请求的数据const app express() //返回一个express服务器对象 const https require(https) const …

对于TIS,TRP的天线有源测试参数分析

TRP,Total Radiated Power,全向辐射功率; TIS,Total Isotropic Sensitivity,全向(辐射)灵敏度; 通过对整个辐射球面的发射功率进行积分并取平均得到,它反映手机整机的发射…

java(五)-迭代器,数据结构,List,Set ,TreeSet集合,Collections工具类

day05【迭代器,数据结构,List,Set ,TreeSet集合,Collections工具类】 主要内容 Collection集合的遍历方式: 迭代器。 foreach(增强for循环)JDK 1.8开始的新技术Lambda表达式。 数据结构 是集合的底层,研究数据结构是为了选择使用某种集合。 List接口…

Java基础学习系列--(五)【迭代器,数据结构,List,Set ,TreeSet集合,Collections工具类】

第一章 Iterator迭代器 1.1 Iterator接口 在程序开发中,经常需要遍历集合中的所有元素。针对这种需求,JDK专门提供了一个接口java.util.Iterator。 想要遍历Collection集合,那么就要获取该集合迭代器完成迭代操作,下面介绍一下…

键盘win键无法使用,win+r不生效、win键没反应、Windows键失灵万能解决方案

win键无效,键盘Win组合键突然不不能用如何解决? winE、winL不生效为什么我的键盘win组合键没法用? 电脑键盘win键没反应 ?Win10按徽标键没反应怎么办? windows7、windows10中按键盘win键没反应了 怎么开启&#xff…

【shell】通过EOF实现一个链接执行多条sql

文章目录 一. EOF简介二. 语法三. cat <<EOF 与 cat <<-EOF四. shell执行多条sql 一. EOF简介 在shell脚本中&#xff0c;通常将EOF与 << 结合使用&#xff0c;表示后续的输入作为子命令或子Shell的输入&#xff0c;直到再遇到EOF为止&#xff0c;再返回到主…

Unity ILRuntime热更新(二)

一、启动ILRuntime并加载程序集 public class Lesson02 : MonoBehaviour {private AppDomain _domain;private MemoryStream _dllStream;private MemoryStream _pdbStream;IEnumerator Start(