会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
魔杰Lee
博客园
首页
新随笔
联系
订阅
管理
2018年4月12日
java根据日期获取月龄,按照减法原理,先day相减,不够向month借;然后month相减,不够向year借;最后year相减。
摘要: /** * 函数名: getMonthNum * 功能: 相差月数 * 参数: @param start 开始时间 * 参数: @param end 结束时间 * 返回值: int */ public static int getMonthNum(Date start,Date end) { Cal
阅读全文
posted @ 2018-04-12 17:13 魔杰Lee
阅读(461)
评论(0)
推荐(0)
公告