时间 - 分钟操作 [英] Time - hour minute manipulation
本文介绍了时间 - 分钟操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有API可以按时(小时,分钟)快速操作(例如添加,减去)。
Is there an API to quickly manipulate (e.g. add, subtract) on time (hour, minute).
伪代码列在下面
Time t1 = "5 PM";
t1.add("5 minutes");
t1.subtract("90 minutes");
推荐答案
http://joda-time.sourceforge.net/
这篇关于时间 - 分钟操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文