从org.joda.time.DateTime转换为java.util.Calendar的方法 [英] Approach to convert from org.joda.time.DateTime to java.util.Calendar

查看:97
本文介绍了从org.joda.time.DateTime转换为java.util.Calendar的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都这样做,可以分享?我看到一两个选项,但想知道别人已经完成了什么。

解决方案

根据joda-time文档,首选方法使用是调用这个:
AbstractDateTime#toCalendar


Anyone done this and can share? I see an option or two but want to know what others have accomplished.

解决方案

According to joda-time documentation the preferred method to use is to call this: AbstractDateTime#toCalendar.

这篇关于从org.joda.time.DateTime转换为java.util.Calendar的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆