{"rsdb":{"rid":"156001","subhead":"","postdate":"0","aid":"117108","fid":"54","uid":"1","topic":"1","content":"

\u3000\u3000java.util.Date<\/code>\u662f\u4e00\u4e2a\u201c\u4e07\u80fd\u63a5\u53e3\u201d\uff0c\u5b83\u5305\u542b\u65e5\u671f\u3001\u65f6\u95f4\uff0c\u8fd8\u6709\u6beb\u79d2\u6570\uff0c\u5982\u679c\u4f60\u53ea\u60f3\u7528java.util.Date<\/code>\u5b58\u50a8\u65e5\u671f\uff0c\u6216\u8005\u53ea\u5b58\u50a8\u65f6\u95f4\uff0c\u90a3\u4e48\uff0c\u53ea\u6709\u4f60\u77e5\u9053\u54ea\u4e9b\u90e8\u5206\u7684\u6570\u636e\u662f\u6709\u7528\u7684\uff0c\u54ea\u4e9b\u90e8\u5206\u7684\u6570\u636e\u662f\u4e0d\u80fd\u7528\u7684\u3002<\/strong><\/p>

\u3000\u30001.1 Date\u7684\u6784\u9020\u65b9\u6cd5<\/strong><\/p>

\u3000\u3000Date \u662f\u6211\u4eec\u4f7f\u7528\u7684\u6700\u591a\u7684\u4e00\u4e2a\u65e5\u671f\u7c7b\uff0cDate\u63d0\u4f9b\u7684\u6784\u9020\u65b9\u6cd5\u5728\u5b98\u65b9API\u4e2d\u6709\u4e00\u4e0b\u51e0\u79cd\uff1a<\/p>

\"\"<\/p>

\u3000\u3000Date \u7c7b\u63d0\u4f9b\u4e86\u591a\u79cd\u6784\u9020\u65b9\u6cd5\uff0c\u4f46\u662f\u76ee\u524d\u6709\u5f88\u591a\u65b9\u6cd5\u90fd\u5df2\u7ecf\u4e0d\u5efa\u8bae\u4f7f\u7528<\/p>

\u3000\u3000\u76ee\u524d\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\uff1a<\/p>

\u3000\u3000\u8fd9\u4e24\u79cd\u65b9\u6cd5\u521b\u5efa\u5bf9\u8c61\u7684\u4e0d\u540c\u4e3b\u8981\u662f\u901a\u8fc7\u6307\u5b9a\u7684\u65f6\u95f4\u6233\u4e0d\u540c\uff0c\u901a\u8fc7\u8bbe\u7f6eDate \u4e2d\u7684 fastTime \u8fdb\u884c\u8bbe\u7f6eDate \u5bf9\u8c61\u7684\u65f6\u95f4\u3002<\/span><\/span>
<\/span><\/p>

\u3000\u3000\u9664\u4e86\u4f7f\u7528\u6784\u9020\u65b9\u6cd5\u83b7\u53d6\u5b9e\u4f8b\uff0cDate \u8fd8\u53ef\u4ee5\u901a\u8fc7<\/strong><\/span><\/span><\/span>Instant<\/span> \u6765\u521b\u5efa\u4e00\u4e2aDate \u5b9e\u4f8b\uff1a<\/strong><\/span><\/p>

\u3000\u3000\u3000Instant \u662fJava 8 \u63d0\u4f9b\u7684\u65b0\u7279\u6027\uff1a<\/p>

\"\"<\/p>

\u3000\u30001.2 Date\u7684\u5e38\u7528\u65b9\u6cd5<\/strong><\/span><\/span><\/p>

\u3000\u3000\u3000\u3000Date \u7c7b\u4e2d\uff0c\u63d0\u4f9b\u4e86\u5e38\u7528\u7684\u83b7\u53d6\uff1a\u5e74\uff0c\u6708\uff0c\u65e5\uff0c\u65f6\uff0c\u5206\uff0c\u79d2\u7b49\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u3000\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>

\u3000\u3000\u3000\u3000\u8bfb\u8005\u53ef\u80fd\u4f1a\u53d1\u73b0\uff0c\u8fd9\u91cc\u7684\u5e74\u4efd\u5e76\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\uff0c\u8fd9\u91cc\u4e3b\u8981\u662f\u56e0\u4e3a\u4ee3\u7801\u65b9\u6cd5\u5b9e\u73b0\uff1a<\/p>

\"\"<\/p>

\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u8fd9\u91cc\u7684getYear \u5e76\u4e0d\u662f\u83b7\u53d6\u5f53\u524d\u5e74\u4efd\uff0c\u800c\u662f\u83b7\u53d6\u5230\u548c1900\u5e74\u7684\u5dee\u503c\uff0c\u8fd9\u91cc\u4e3b\u8981\u662f\u56e0\u4e3aJDK\u8001\u7248\u672c\u9057\u7559\u4e0b\u6765\u7684\u95ee\u9898\uff0c\u5bf9\u4e8eDate \u4e2d\u83b7\u53d6\u5e74\u6708\u65e5\u7684\u65b9\u6cd5\uff0c\u73b0\u5728\u5df2\u7ecf\u4e0d\u5efa\u8bae\u4f7f\u7528<\/span>\u4e86\u3002<\/span><\/span><\/p>

\u3000\u3000\u3000\u3000Date\u7c7b\u4e2d\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u8bbe\u7f6e\u65e5\u671f\u7684\u65b9\u6cd5\uff1a<\/strong><\/span><\/p>

\"\"<\/strong><\/span><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u4e0e\u4e0a\u9762\u7684get\u65b9\u6cd5\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\uff0c\u4f46\u662f\u73b0\u5728\u4e5f\u540c\u6837\u4e0d\u5efa\u8bae\u4f7f\u7528<\/span>\u4e86\u3002<\/p>

\u3000\u30001.3 Date\u7684\u603b\u7ed3<\/strong><\/p>

\u3000\u3000\u3000\u3000\u7ecf\u8fc7\u6211\u4eec\u4e0a\u8ff0\u7684\u5206\u6790\uff0c\u6211\u4eec\u53d1\u73b0\uff0cDate \u7c7b\u5982\u4eca\u5f88\u591a\u65b9\u6cd5\u5df2\u7ecf\u6ca1\u6709\u4ec0\u4e48\u7528\u5904\u4e86\uff0c\u786e\u5b9e\uff0c\u5982\u4eca\u65f6\u95f4\u7684\u5904\u7406\u5e76\u4e0d\u76f4\u63a5\u5728Date \u7c7b\u4e2d\u8fdb\u884c\uff0c\u800c\u662f\u901a\u8fc7Calendar\uff0c\u6216\u8005LocalDate \u6765\u8fdb\u884c\uff0c\u6211\u4eec\u518d\u65e5\u5e38\u4f7f\u7528\u4e2d\uff0c\u66f4\u591a\u7684\u662f\u8981\u6765\u505a\u4e00\u4e2a\u8bb0\u5f55\u65e5\u671f\u7684\u5b9e\u4f8b\u3002<\/strong><\/p>

\u3000\u3000\u4ecb\u7ecd\u4e00\u4e0bDate \u4e0e Calendar \u7684\u533a\u522b<\/strong><\/p>

\u3000\u3000<\/strong>Date\u7528\u4e8e\u8bb0\u5f55\u67d0\u4e00\u4e2a\u542b\u65e5\u671f\u7684\u3001\u7cbe\u786e\u5230\u6beb\u79d2\u7684\u65f6\u95f4\u3002\u91cd\u70b9\u5728\u4ee3\u8868\u4e00\u5239\u90a3\u7684\u65f6\u95f4\u672c\u8eab\u3002
\u3000\u3000Calendar\u7528\u4e8e\u5c06\u67d0\u4e00\u65e5\u671f\u653e\u5230\u5386\u6cd5\u4e2d\u7684\u4e92\u52a8\u2014\u2014\u65f6\u95f4\u548c\u5e74\u3001\u6708\u3001\u65e5\u3001\u661f\u671f\u3001\u4e0a\u5348\u3001\u4e0b\u5348\u3001\u590f\u4ee4\u65f6\u7b49\u8fd9\u4e9b\u5386\u6cd5\u89c4\u5b9a\u4e92\u76f8\u4f5c\u7528\u5173\u7cfb\u548c\u4e92\u52a8\u3002Calendar\u672c\u8eab\u4ee3\u8868\u516c\u5386\u7684\u4e00\u4e2a\u7b80\u5316\u7f29\u6c34\u7248\uff0c\u59d1\u4e14\u53eb\u201c\u8ba1\u7b97\u673a\u5386\u201d\u3002<\/p>

\u3000\u3000\u5b8c\u6574\u7684\u516c\u5386\u662f\u683c\u91cc\u9ad8\u5229\u5386,Java SE\u4e2d\u4ee5GregorianCalendar\u7c7b\u6765\u63d0\u4f9b\u76f8\u5173\u7684\u5386\u6cd5\u529f\u80fd\u3002<\/p>

\u3000\u30002.1 Calendar \u7684\u6784\u9020\u65b9\u6cd5<\/strong><\/p>

\"\"<\/strong><\/p>

\u3000\u3000\u3000\u3000\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0cCalendar \u4e2d\u7684\u6784\u9020\u65b9\u6cd5\u88ab\u5c01\u88c5\u5728\u5305\u4e2d\uff0c\u6211\u4eec\u65e0\u6cd5\u76f4\u63a5\u901a\u8fc7\u6784\u9020\u65b9\u6cd5\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b9e\u4f8b\u5bf9\u8c61\uff0c\u6211\u4eec\u53ea\u80fd\u901a\u8fc7\u8c03\u7528 Calendar\u4e2d\u7684\u9759\u6001\u65b9\u6cd5 Calendar.getInstance\uff08\uff09\u65b9\u6cd5\u83b7\u53d6\u4e00\u4e2a\u5b9e\u4f8b\u5bf9\u8c61\u3002<\/p>

\u3000\u3000\u3000\u3000\u6211\u4eec\u770b\u4e00\u4e0b\u5b98\u65b9API \u4e2d\u63d0\u4f9b\u4e86\u54ea\u4e9b\u65b9\u6cd5\u83b7\u53d6Calendar \u5bf9\u8c61\uff1a<\/p>

\"\"<\/p>

\u3000\u3000\u3000\u3000\u8fd9\u662f\u5b98\u65b9\u6587\u6863\u7ed9\u51fa\u7684\u83b7\u53d6\u53bb\u5bf9\u8c61\u5b9e\u4f8b\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9aTimeZone<\/strong> \u548c Locale<\/strong> \u6765\u83b7\u53d6\u7279\u5b9a\u7684 Calendar \u5bf9\u8c61\uff0c\u8fd9\u4e5f\u5374\u5206\u4e86\u6bcf\u4e2a\u5730\u533a\u7684\u65f6\u95f4\u65e5\u5386\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u4f7f\u7528<\/p>

\u3000\u3000\u3000\u3000\u9664\u4e86\u901a\u8fc7getInstance\uff08\uff09 \u65b9\u6cd5\u83b7\u53d6\u5b9e\u4f8b\u4ee5\u5916\uff0cJava 1.8 \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u90e8\u7c7b\uff1a<\/p>

\"\"<\/p>

\u3000\u3000\u3000\u3000\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2aBuilder \u7684\u5b9e\u4f53\uff0c\u7136\u540e\u901a\u8fc7\u8c03\u7528Build \u65b9\u6cd5\u83b7\u53d6\u4e00\u4e2a Calendar \u5b9e\u4f8b\u3002<\/p>

\u3000\u3000\u3000\u3000\u5728Builder \u4e2d\uff0cBuilder \u7c7b\u63d0\u4f9b\u4e86\u8bbe\u7f6e\u5e74\u6708\u65e5\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u65f6\u95f4\uff0c\u6765\u83b7\u53d6\u7279\u5b9a\u7684Calendar \u5bf9\u8c61\u3002<\/p>

\u3000\u3000\u3000\u3000\u8fd9\u91cc\u603b\u7ed3\u4e00\u4e0b\uff1a<\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000Calendar \u63d0\u4f9b\u7684\u83b7\u53d6\u5b9e\u4f8b\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\u4e24\u79cd\u9014\u5f84\uff1a<\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u30001\u3001\u8c03\u7528Calendar.getInstance\uff08\uff09\u65b9\u6cd5<\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 2\u3001\u521b\u5efa\u5185\u90e8\u7c7bBuilder \u7684\u5b9e\u4f8b\uff0c\u901a\u8fc7\u8c03\u7528\u5176 build\uff08\uff09\u65b9\u6cd5\u521b\u5efa Calendar \u5b9e\u4f8b
<\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u5bf9\u4e8e\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff0c\u53ea\u80fd\u5148\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u7684Calendar\uff0c\u7136\u540e\u518d\u901a\u8fc7\u8c03\u7528\u76f8\u5e94\u7684set \u65b9\u6cd5\u8bbe\u7f6e\u5e74\u6708\u65e5\u7b49\uff0c\u800c\u5982\u679c\u4f7f\u7528\u5185\u90e8\u7c7bBuilder \u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7setInstant \u65b9\u6cd5\u8bbe\u7f6e\u6211\u4eec\u6240\u671f\u671b\u7684\u65f6\u95f4\u3002<\/p>

\u3000\u30002.2 Calendar \u7684\u5e38\u7528\u65b9\u6cd5<\/strong><\/p>

\u3000\u3000\u3000\u3000\u6211\u4eec\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u6709\uff1a<\/strong><\/p>

\u3000\u3000\u3000\u3000\u901a\u8fc7Calendar \u65b9\u6cd5\u83b7\u53d6\u4e00\u4e2aDate \u7684\u5b9e\u4f8b\u3002<\/p>

\u3000\u3000\u3000\u3000Calendar \u65b9\u6cd5\u83b7\u53d6\u5e74\u6708\u65e5\u7684\u65b9\u6cd5\uff1a<\/p>

\"\"<\/p>

\u3000\u3000\u6211\u4eec\u53ef\u4ee5\u770b\u5230Calendar \u91cc\u9762\u83b7\u53d6\u5e74\u6708\u65e5\u4e0d\u50cf\u4e0a\u9762 Date \u7c7b\u4e2d\u7684\u901a\u8fc7\u8bbf\u95ee\u5404\u4e2a\u65b9\u6cd5\u6765\u83b7\u53d6\u3002<\/p>

\u3000\u3000\u3000\u3000Calendar \u5728\u521d\u59cb\u5316\u7684\u65f6\u5019\uff0c\u5c31\u5df2\u7ecf\u5c06\u5e74\u6708\u65e5\u5212\u5206\u597d\uff0c\u5e76\u4e14\u5b58\u5165fields \u53d8\u91cf\u4e2d\u3002\u6211\u4eec\u53ea\u9700\u8981\u4f20\u5165\u4e2a\u4f4d\u7f6e\u7f16\u53f7\uff0c\u5c31\u53ef\u4ee5\u83b7\u53d6\u6211\u4eec\u9700\u8981\u7684\u4fe1\u606f<\/p>

\u3000\u3000\u3000\u3000\u9664\u4e86\u83b7\u53d6\u4ee5\u5916\uff0cCalendar \u4e5f\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684set \u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\"\"<\/p>

\u3000\u3000\u3000\u3000\u901a\u8fc7\u91cd\u65b0\u4f20\u5165\u53c2\u6570\uff0c\u8bbe\u7f6eCalendar \u7684\u65f6\u95f4<\/p>

\u3000\u3000\u3000\u3000<\/p>

\u3000\u3000\u3000\u3000Calendar \u83b7\u53d6\u5f53\u524d\u6708\u4efd\uff0c\u5f53\u524d\u661f\u671f\u7684\u6700\u5927\\\u5c0f\u5929\u6570<\/p>

\u3000\u3000\u3000\u3000\u63d0\u4f9b\u4e86Before \u548cAfter \u4e24\u4e2a\u65b9\u6cd5\uff0c\u7528\u4e8e\u5224\u65ad\u5f53\u524d\u65f6\u95f4\u4e0e\u5bf9\u6bd4\u65f6\u95f4\u5148\u540e\uff1a<\/p>

\"\"<\/p>

\u3000\u3000\u3000\u3000<\/p>

\u3000\u3000\u3000\u3000\u63d0\u4f9b\u4e86add \u65b9\u6cd5\u8fdb\u884c\u65e5\u671f\u7684\u52a0\u51cf<\/p>

\u3000\u3000\u3000\u30002.3 Calendar \u7684\u603b\u7ed3<\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000 \u4ece\u4e0a\u9762\u7684\u5206\u6790\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0cCalendar \u7c7b \u4e3b\u8981\u662f\u7528\u4e8e\u4f5c\u4e3a\u65e5\u5386\u7684\u5bf9\u8c61\uff0c\u53ef\u4ee5\u94dc\u9f13\u54e6\u8bbe\u7f6e\u5730\u533a\u65f6\u95f4\uff0c\u533a\u5206\u6bcf\u4e2a\u5730\u533a\u7684\u65e5\u671f\uff0cCalendar \u63d0\u4f9b\u7684\u65b9\u6cd5\u4e5f\u6ca1\u6709\u5f88\u591a\u5bf9\u65f6\u95f4\u8fdb\u884c\u7684\u4e00\u4e9b\u64cd\u4f5c\u3002<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000Java 8\u65b0\u589e\u4e86LocalDate<\/code>\u548cLocalTime<\/code>\u63a5\u53e3\uff0c\u4e3a\u4ec0\u4e48\u8981\u641e\u4e00\u5957\u5168\u65b0\u7684\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684API\uff1f\u56e0\u4e3a\u65e7\u7684java.util.Date<\/code>\u5b9e\u5728\u662f\u592a\u96be\u7528\u4e86\u3002<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000java.util.Date<\/code>\u6708\u4efd\u4ece0<\/code>\u5f00\u59cb\uff0c\u4e00\u6708\u662f0<\/code>\uff0c\u5341\u4e8c\u6708\u662f11<\/code>\uff0c\u53d8\u6001\u5427\uff01java.time.LocalDate<\/code>\u6708\u4efd\u548c\u661f\u671f\u90fd\u6539\u6210\u4e86enum<\/code>\uff0c\u5c31\u4e0d\u53ef\u80fd\u518d\u7528\u9519\u4e86\u3002<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000java.util.Date<\/code>\u548cSimpleDateFormatter<\/code>\u90fd\u4e0d\u662f\u7ebf\u7a0b\u5b89\u5168\u7684\uff0c\u800cLocalDate<\/code>\u548cLocalTime<\/code>\u548c\u6700\u57fa\u672c\u7684String<\/code>\u4e00\u6837\uff0c\u662f\u4e0d\u53d8\u7c7b\u578b\uff0c\u4e0d\u4f46\u7ebf\u7a0b\u5b89\u5168\uff0c\u800c\u4e14\u4e0d\u80fd\u4fee\u6539\u3002<\/p>

\u3000\u3000\u3000\u30003.1 LocalDate\/LocalTime \u7684\u6784\u9020\u65b9\u6cd5<\/strong><\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000<\/strong><\/strong>3.1.1 LocalDate \u7684\u6784\u9020\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000LocalDate \u5e76\u6ca1\u6709\u63d0\u4f9b\u516c\u5f00\u7684\u6784\u9020\u65b9\u6cd5\uff0c\u53ea\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5c01\u88c5\u7684\u6784\u9020\u65b9\u6cd5\u4f9b\u5185\u90e8\u4f7f\u7528\u3002<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000LocalDate \u63d0\u4f9b\u4e86\u4e09\u79cd\u521b\u5efa\u5b9e\u4f8b\u7684\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000<\/p>

\u3000\u3000\u3000\u3000\u3000\u30003.1.2 LocalTime \u7684\u6784\u9020\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000LocalTime \u4e0eLcoalDate \u4e00\u6837\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5c01\u88c5\u7684\u6784\u9020\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000LocalTime \u63d0\u4f9b\u4e86\u4e09\u79cd\u521b\u5efa\u65b9\u6cd5\uff1a<\/p>

\u3000\u3000\u3000\u30003.2 LocalDate\/LocalTime \u7684\u5e38\u7528\u65b9\u6cd5<\/strong><\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000<\/strong><\/strong>\u83b7\u53d6\u5f53\u5929\u7684\u8d77\u59cb\u65f6\u95f4\uff1aatStartOfDay<\/span>\uff08\uff09<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u8bbe\u7f6e\u5f53\u524d\u65e5\u671f\u7684\u65f6\u95f4\uff1aatTime<\/span>\uff08\uff09<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u683c\u5f0f\u8f6c\u6362\uff1aformat\uff08\uff09<\/p>

\"\"<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u5e38\u7528\u7684\u83b7\u53d6\u5e74\u3001\u6708\u3001\u65e5 \u7b49\u65b9\u6cd5<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u83b7\u53d6\u6539\u53d8\u6708\u4efd\u7684LocalDate \uff1awithMonth\uff08\uff09<\/span><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u5176\u4ed6\u5e38\u7528\u7684\u65e5\u671f\u8f6c\u6362\uff1a<\/p>

\u3000\u3000\u3000\u3000\u3000\u30003.3 LocalDate\/LocalTime \u7684\u603b\u7ed3<\/strong><\/strong><\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u5728\u65b0\u7684Java 8\u4e2d\uff0c\u65e5\u671f\u548c\u65f6\u95f4\u88ab\u660e\u786e\u5212\u5206\u4e3aLocalDate<\/code>\u548cLocalTime<\/code>\uff0cLocalDate<\/code>\u65e0\u6cd5\u5305\u542b\u65f6\u95f4\uff0cLocalTime<\/code>\u65e0\u6cd5\u5305\u542b\u65e5\u671f\u3002\u5f53\u7136\uff0cLocalDateTime<\/code>\u624d\u80fd\u540c\u65f6\u5305\u542b\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>

\u3000\u3000\u3000\u3000\u3000\u3000\u65b0\u63a5\u53e3\u66f4\u597d\u7528\u7684\u539f\u56e0\u662f\u8003\u8651\u5230\u4e86\u65e5\u671f\u65f6\u95f4\u7684\u64cd\u4f5c\uff0c\u7ecf\u5e38\u53d1\u751f\u5f80\u524d\u63a8\u6216\u5f80\u540e\u63a8\u51e0\u5929\u7684\u60c5\u51b5\u3002\u7528java.util.Date<\/code>\u914d\u5408Calendar<\/code>\u8981\u5199\u597d\u591a\u4ee3\u7801\uff0c\u800c\u4e14\u4e00\u822c\u7684\u5f00\u53d1\u4eba\u5458\u8fd8\u4e0d\u4e00\u5b9a\u80fd\u5199\u5bf9\u3002<\/p>","orderid":"0","title":"Java \u65f6\u95f4\u7c7b-Calendar\u3001Date\u3001LocalDate\/LocalTime","smalltitle":"","mid":"0","fname":"linux\u7f16\u7a0b\u57fa\u7840","special_id":"0","bak_id":"0","info":"0","hits":"125","pages":"1","comments":"0","posttime":"2017-01-02 08:15:19","list":"1483316119","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"Java<\/A> \u65f6\u95f4<\/A> -Calendar<\/A> Date<\/A> LocalDate\/LocalTime<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.31","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"Java \u65f6\u95f4\u7c7b-Calendar\u3001Date\u3001LocalDate\/LocalTime","lastview":"1500687312","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}