标签:
DateTime beforeDST = new DateTime(2015, 3, 10, 1, 45); DateTime afterDST = new DateTime(2015, 3, 10, 3, 45); Period period = new Period(beforeDST, afterDST); System.out.println("#Hours between 1:45 and 3:45: " + period.getHours()); // #Hours between 1:45 and 3:45: 1
标签:
原文地址:http://www.cnblogs.com/wade-case/p/4532081.html