{"id":954,"date":"2018-09-17T18:48:48","date_gmt":"2018-09-17T09:48:48","guid":{"rendered":"https:\/\/chat-messenger.com\/?p=954"},"modified":"2018-12-23T01:52:35","modified_gmt":"2018-12-22T16:52:35","slug":"calculating-dates","status":"publish","type":"post","link":"https:\/\/chat-messenger.com\/hi\/\u092c\u094d\u0932\u0949\u0917\/java\/\u0924\u093f\u0925\u093f\u092f\u094b\u0902-\u0915\u0940-\u0917\u0923\u0928\u093e","title":{"rendered":"\u091c\u093e\u0935\u093e \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u0917\u0923\u0928\u093e \u091c\u094b\u0921\u093c\u0928\u093e \u0914\u0930 \u0918\u091f\u093e\u0928\u093e \u0906\u0938\u093e\u0928 \u092c\u0928\u093e \u0926\u093f\u092f\u093e \u0917\u092f\u093e"},"content":{"rendered":"<h2 class=\"common_title\"><a name=\"0\">\u091c\u093e\u0935\u093e <strong>\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u0915\u0940 \u0917\u0923\u0928\u093e<\/strong>\u091c\u094b\u0921\u093c\u0928\u093e \u0914\u0930 \u0918\u091f\u093e\u0928\u093e \u0939\u0941\u0906 \u0906\u0938\u093e\u0928<\/a><\/h2>\n<p>\n\u091c\u093e\u0935\u093e \u0915\u0947 \u0938\u093e\u0925 \u0906\u0938\u093e\u0928<strong>\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u0915\u0947 \u091c\u094b\u0921\u093c\/\u0918\u091f\u093e\u0935 \u0915\u0940 \u0917\u0923\u0928\u093e \u0915\u0930\u0947\u0902<\/strong>\u0910\u0938\u093e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u090f\u0915 \u0928\u092e\u0942\u0928\u093e \u0915\u093e\u0930\u094d\u092f\u0915\u094d\u0930\u092e \u092a\u094d\u0930\u0938\u094d\u0924\u0941\u0924 \u0939\u0948\u0964<br \/>\u0928\u092e\u0942\u0928\u093e \u0915\u093e\u0930\u094d\u092f\u0915\u094d\u0930\u092e \u0915\u0940 \u0935\u093f\u0936\u0947\u0937\u0924\u093e\u090f\u0902 \u0907\u0938 \u092a\u094d\u0930\u0915\u093e\u0930 \u0939\u0948\u0902.<\/p>\n<ul>\n<li>\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u092f\u093e \u092e\u0928\u092e\u093e\u0928\u0940 \u0924\u093f\u0925\u093f\/\u0938\u092e\u092f \u092e\u0947\u0902 \u0928\u093f\u0930\u094d\u0926\u093f\u0937\u094d\u091f \u0938\u092e\u092f \u0915\u094b \u091c\u094b\u0921\u093c\u0928\u0947 \u092f\u093e \u0918\u091f\u093e\u0928\u0947 \u0915\u093e \u092a\u0930\u093f\u0923\u093e\u092e \u0932\u094c\u091f\u093e\u0924\u093e \u0939\u0948\u0964<\/li>\n<li>\u092f\u0926\u093f \u0915\u094b\u0908 \u0938\u0915\u093e\u0930\u093e\u0924\u094d\u092e\u0915 \u0938\u0902\u0916\u094d\u092f\u093e \u0928\u093f\u0930\u094d\u0926\u093f\u0937\u094d\u091f \u0939\u0948, \u0924\u094b \u0938\u092e\u092f \u0906\u0917\u0947 \u092c\u0922\u093c \u091c\u093e\u090f\u0917\u093e; \u092f\u0926\u093f \u092f\u0939 \u0928\u0915\u093e\u0930\u093e\u0924\u094d\u092e\u0915 \u092e\u093e\u0928 \u0939\u0948, \u0924\u094b \u092f\u0939 \u092a\u0940\u091b\u0947 \u0939\u094b \u091c\u093e\u090f\u0917\u093e\u0964<br \/>\n\u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f, \u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f \u0938\u0947 10 \u0926\u093f\u0928 \u092a\u0939\u0932\u0947\u0964<strong>\u0917\u0923\u0928\u093e<\/strong>\u092f\u0926\u093f \u0939\u093e\u0902, \u0924\u094b \u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u0932\u093e\u0917\u0942 \u0939\u094b\u0917\u093e.<br \/>\n<b>\u0915\u0948\u0932\u0947\u0902\u0921\u0930 cal = addMonth(-10);<\/b>\n<\/li>\n<li>\u0906\u092a \u0935\u0930\u094d\u0937, \u092e\u093e\u0939, \u0926\u093f\u0928, \u0918\u0902\u091f\u093e, \u092e\u093f\u0928\u091f, \u0938\u0947\u0915\u0902\u0921 \u0914\u0930 \u092e\u093f\u0932\u0940\u0938\u0947\u0915\u0902\u0921 \u0938\u092e\u092f \u092b\u093c\u0940\u0932\u094d\u0921 \u0915\u0947 \u0932\u093f\u090f \u0915\u094b\u0908 \u092d\u0940 \u0938\u092e\u092f \u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<br \/>\n\u0938\u093e\u0925 \u0939\u0940, \u0928\u093f\u0930\u094d\u0926\u093f\u0937\u094d\u091f \u0938\u092e\u092f \u0915\u0947 \u0938\u093e\u092a\u0947\u0915\u094d\u0937<strong>\u0917\u0923\u0928\u093e<\/strong>\u092f\u0926\u093f \u0939\u093e\u0902, \u0924\u094b \u0915\u0948\u0932\u0947\u0902\u0921\u0930 \u0915\u094d\u0932\u093e\u0938 \u0915\u094b \u0924\u0930\u094d\u0915 \u0915\u0947 \u0930\u0942\u092a \u092e\u0947\u0902 \u092a\u093e\u0938 \u0915\u0930\u0947\u0902\u0964<br \/>\n\u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f, \u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u0928\u093f\u0930\u094d\u0926\u093f\u0937\u094d\u091f \u0915\u0948\u0932\u0947\u0902\u0921\u0930 \u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u094b \u090f\u0915 \u0935\u0930\u094d\u0937 \u0906\u0917\u0947 \u092c\u0922\u093c\u093e \u0926\u0947\u0917\u093e\u0964<br \/>\n<b>\u0915\u0948\u0932\u0947\u0902\u0921\u0930 \u0915\u0948\u0932 = \u091c\u094b\u0921\u093c\u0947\u0902 (&quot;\u0928\u093f\u0930\u094d\u0926\u093f\u0937\u094d\u091f \u0915\u0948\u0932\u0947\u0902\u0921\u0930&quot;, 1,0,0,0,0,0,0);<\/b>\n<\/li>\n<li>\u092f\u0926\u093f \u092a\u094d\u0930\u0924\u094d\u092f\u0947\u0915 \u0938\u092e\u092f \u092b\u093c\u0940\u0932\u094d\u0921 \u0915\u093e \u092e\u093e\u0928 \u0909\u0938\u0915\u0940 \u0938\u0940\u092e\u093e \u0938\u0947 \u0905\u0927\u093f\u0915 \u0939\u094b \u091c\u093e\u0924\u093e \u0939\u0948, \u0924\u094b \u0905\u0917\u0932\u0947 \u092c\u0921\u093c\u0947 \u0938\u092e\u092f \u092b\u093c\u0940\u0932\u094d\u0921 \u0915\u094b \u092c\u0922\u093c\u093e\u092f\u093e \u092f\u093e \u0918\u091f\u093e\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948\u0964<br \/>\n\u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f, \u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0938\u092e\u092f \u0915\u094b 1 \u0918\u0902\u091f\u093e 5 \u092e\u093f\u0928\u091f \u0906\u0917\u0947 \u092c\u0922\u093c\u093e \u0926\u0947\u0917\u093e\u0964<br \/>\n<b>\u0915\u0948\u0932\u0947\u0902\u0921\u0930 \u0915\u0948\u0932 = \u0910\u0921\u092e\u093f\u0928\u091f(65);<\/b>\n<\/li>\n<\/ul>\n<p><script type=\"text\/javascript\" src=\"https:\/\/chat-messenger.com\/js\/common.js?dd12sssas2223\" charset=\"UTF-8\"><\/script><br \/>\n<script type=\"text\/javascript\"> writePR(); <\/script><\/p>\n<h2 class=\"common_title\"><a name=\"2\">\u0928\u092e\u0942\u0928\u093e \u0915\u093e\u0930\u094d\u092f\u0915\u094d\u0930\u092e<\/a><\/h2>\n<p><textarea readonly=\"readonly\" style=\"font-size: 13px;height: 400px;\" class=\"src\" onclick=\"this.focus();this.select()\">\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u5e74\u6570\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addYera \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u5e74\u6570<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addYera(int addYera){<br \/>\n    return add(null,addYera,0,0,0,0,0,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u6708\u6570\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addMonth \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u6708\u6570<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addMonth(int addMonth){<br \/>\n    return add(null,0,addMonth,0,0,0,0,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u65e5\u6570\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addDate \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u65e5\u6570<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addDate(int addDate){<br \/>\n    return add(null,0,0,addDate,0,0,0,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u6642\u9593\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addHour \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u6642\u9593<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addHour(int addHour){<br \/>\n    return add(null,0,0,0,addHour,0,0,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u5206\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addMinute \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u5206<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addMinute(int addMinute){<br \/>\n    return add(null,0,0,0,0,addMinute,0,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u3010\u79d2\u3011\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * @param addSecond \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u79d2<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar addSecond(int addSecond){<br \/>\n    return add(null,0,0,0,0,0,addSecond,0);<br \/>\n}<br \/>\n\/**<br \/>\n * \u73fe\u5728\u306e\u65e5\u4ed8\u30fb\u6642\u523b\u304b\u3089\u6307\u5b9a\u306e\u6642\u9593\u91cf\u3092\u52a0\u7b97\u30fb\u6e1b\u7b97\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n * \u5e74\u3001\u6708\u3001\u65e5\u3001\u6642\u9593\u3001\u5206\u3001\u79d2\u3001\u30df\u30ea\u79d2\u306e\u5404\u6642\u9593\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u5bfe\u3057\u3001<br \/>\n * \u4efb\u610f\u306e\u6642\u9593\u91cf\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n * \u305f\u3068\u3048\u3070\u3001\u73fe\u5728\u306e\u65e5\u4ed8\u6642\u523b\u304b\u3089 10 \u65e5\u524d\u3092\u8a08\u7b97\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n * Calendar cal = add(null,0,0,-10,0,0,0,0);<br \/>\n *<br \/>\n * \u5404\u6642\u9593\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u304c\u305d\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u5834\u5408\u3001\u6b21\u306e\u5927\u304d\u3044\u6642\u9593\u30d5\u30a3\u30fc\u30eb\u30c9\u304c<br \/>\n * \u5897\u5206\u307e\u305f\u306f\u6e1b\u5206\u3055\u308c\u307e\u3059\u3002<br \/>\n * \u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u3067\u306f1\u6642\u9593\u30685\u5206\u9032\u3081\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n * Calendar cal = add(null,0,0,0,0,65,0,0);<br \/>\n *<br \/>\n * \u5404\u6642\u9593\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8a2d\u5b9a\u3059\u308b\u6570\u91cf\u304c0\u306e\u5834\u5408\u306f\u3001\u73fe\u5728\u306e\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<br \/>\n * java.util.GregorianCalendar\u306e\u5185\u90e8\u51e6\u7406\u3067\u306f\u4ee5\u4e0b\u306e\u5206\u5c90\u3092\u884c\u3063\u3066\u3044\u308b\u3002<br \/>\n *     if (amount == 0) {<br \/>\n *         return;<br \/>\n *     }<br \/>\n *<br \/>\n * @param cal \u65e5\u4ed8\u6642\u523b\u306e\u6307\u5b9a\u304c\u3042\u308c\u3070\u30bb\u30c3\u30c8\u3059\u308b\u3002<br \/>\n *     null\u306e\u5834\u5408\u3001\u73fe\u5728\u306e\u65e5\u4ed8\u6642\u523b\u3067\u65b0\u3057\u3044Calendar\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u3002<br \/>\n * @param addYera \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u5e74\u6570<br \/>\n * @param addMonth \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u6708\u6570<br \/>\n * @param addDate \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u65e5\u6570<br \/>\n * @param addHour \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u6642\u9593<br \/>\n * @param addMinute \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u5206<br \/>\n * @param addSecond \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u79d2<br \/>\n * @param addMillisecond \u52a0\u7b97\u30fb\u6e1b\u7b97\u3059\u308b\u30df\u30ea\u79d2<br \/>\n * @return    \u8a08\u7b97\u5f8c\u306e Calendar \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<br \/>\n *\/<br \/>\npublic static Calendar add(Calendar cal,<br \/>\n                           int addYera,int addMonth,int addDate,<br \/>\n                           int addHour,int addMinute,int addSecond,<br \/>\n                           int addMillisecond){<br \/>\n    if (cal == null) {<br \/>\n        cal = Calendar.getInstance();<br \/>\n    }<br \/>\n    cal.add(Calendar.YEAR, addYera);<br \/>\n    cal.add(Calendar.MONTH, addMonth);<br \/>\n    cal.add(Calendar.DATE, addDate);<br \/>\n    cal.add(Calendar.HOUR_OF_DAY, addHour);<br \/>\n    cal.add(Calendar.MINUTE, addMinute);<br \/>\n    cal.add(Calendar.SECOND, addSecond);<br \/>\n    cal.add(Calendar.MILLISECOND, addMillisecond);<br \/>\n    return cal;<br \/>\n}<br \/>\n<\/textarea><br \/>\n<\/p>\n<h2 class=\"common_title\"><a name=\"3\">\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928<\/a><\/h2>\n<p>\n\u0928\u092e\u0942\u0928\u093e \u0915\u093e\u0930\u094d\u092f\u0915\u094d\u0930\u092e \u092e\u0947\u0902, \u0935\u093e\u092a\u0938\u0940 \u092e\u0942\u0932\u094d\u092f \u0915\u0947 \u0930\u0942\u092a \u092e\u0947\u0902<strong>\u0917\u0923\u0928\u093e \u0915\u0947 \u092c\u093e\u0926<\/strong>\u091a\u0942\u0901\u0915\u093f \u0939\u092e \u090f\u0915 java.util.Calendar \u0911\u092c\u094d\u091c\u0947\u0915\u094d\u091f \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u091c\u093f\u0938\u092e\u0947\u0902 \u0924\u093e\u0930\u0940\u0916 \u0939\u094b\u0924\u0940 \u0939\u0948, \u0939\u092e \u0907\u0938\u0947 java.util.Date \u092e\u0947\u0902 \u092c\u0926\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f java.util.Calendar#getTime() \u0935\u093f\u0927\u093f \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902, \u0914\u0930 \u0907\u0938\u0947 \u0926\u093f\u0928\u093e\u0902\u0915 \u0938\u094d\u091f\u094d\u0930\u093f\u0902\u0917 \u092e\u0947\u0902 \u092c\u0926\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f java.text.SimpleDateFormat \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\u0964 .\n<\/p>\n<p>\u25c6\u0928\u093f\u0937\u094d\u092a\u093e\u0926\u0928 \u0909\u0926\u093e\u0939\u0930\u0923<\/p>\n<pre class=\"sample_src\">\u0938\u093e\u0930\u094d\u0935\u091c\u0928\u093f\u0915 \u0938\u094d\u0925\u0948\u0924\u093f\u0915 \u0936\u0942\u0928\u094d\u092f \u092e\u0941\u0916\u094d\u092f (\u0938\u094d\u091f\u094d\u0930\u093f\u0902\u0917 [] args) { SimpleDateFormat f = new SimpleDateFormat (&quot;yyyy\/MM\/dd HH:mm:ss&quot;); System.out.println(&quot;\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f = &quot;+ f.format( \u091c\u094b\u0921\u093c\u0947\u0902 (null,0,0,0,0,0,0,0).getTime())); System.out.println(&#039;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 1 \u0935\u0930\u094d\u0937 \u092e\u0947\u0902 = &quot;+ f.format(addYera(1) .getTime ())); System.out.println(&quot;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 1 \u092e\u093e\u0939 \u092a\u0939\u0932\u0947 = &quot;+ f.format(addMonth(-1).getTime())); System.out.println(&quot;3 \u0918\u0902\u091f\u0947 \u092c\u093e\u0926 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f = &quot;+ f.format(addHour(3).getTime())); System.out.println(&quot;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 30 \u0918\u0902\u091f\u0947 \u092a\u0939\u0932\u0947 = &quot;+ f.format(addHour(-30).getTime ())); System.out.println(&quot;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 40 \u092e\u093f\u0928\u091f \u092c\u093e\u0926 = &quot;+ f.format(addMinute(40).getTime())); System.out.println(&quot;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 80 \u0938\u0947\u0915\u0902\u0921 \u092c\u093e\u0926 = &quot;+ f.format (addMinute(40).getTime())); Time = &quot;+ f.format(addSecond(80).getTime())); System.out.println(&quot;\u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f 1 \u092e\u0939\u0940\u0928\u0947 \u092a\u0939\u0932\u0947 \u0938\u0947 4 \u0926\u093f\u0928 = &quot;+ f.format(\u091c\u094b\u0921\u093c\u0947\u0902(null,0, -1,4,0,0,0,0).getTime())); }\r\n<\/pre>\n<p>\u25c6\u0928\u093f\u0937\u094d\u092a\u093e\u0926\u0928 \u092a\u0930\u093f\u0923\u093e\u092e<br \/>\n\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 2008\/03\/25 00:00:00 \u0939\u0948\u0964<\/p>\n<pre class=\"console\">\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f = 2008\/03\/25 00:00:00 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u090f\u0915 \u0935\u0930\u094d\u0937 \u092c\u093e\u0926 = 2009\/03\/25 00:00:00 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u090f\u0915 \u092e\u093e\u0939 \u092a\u0939\u0932\u0947 = 2008\/02\/25 00:00 :00 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 3 \u0918\u0902\u091f\u0947 \u092c\u093e\u0926 = 2008\/03\/25 03:00:00 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 30 \u0918\u0902\u091f\u0947 \u092a\u0939\u0932\u0947 = 2008\/03\/23 18:00:00 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 40 \u092e\u093f\u0928\u091f \u092c\u093e\u0926 = 2008\/03\/ 25 00:40:00 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 80 \u0938\u0947\u0915\u0902\u0921 \u092c\u093e\u0926 = 2008\/03\/25 00:01:20 \u0926\u093f\u0928\u093e\u0902\u0915 \u0914\u0930 \u0938\u092e\u092f 1 \u092e\u0939\u0940\u0928\u0947 \u092a\u0939\u0932\u0947 \u0938\u0947 4 \u0926\u093f\u0928 = 2008\/02\/29 00:00:00\r\n<\/pre>\n<p>*2008 \u090f\u0915 \u0932\u0940\u092a \u0935\u0930\u094d\u0937 \u0939\u0948, \u0907\u0938\u0932\u093f\u090f \u092b\u0930\u0935\u0930\u0940 \u0915\u093e \u0906\u0916\u093f\u0930\u0940 \u0926\u093f\u0928 29 \u0935\u093e\u0902 \u0939\u094b\u0917\u093e\u0964<\/p>\n<p>\u092f\u0939 \u0928\u092e\u0942\u0928\u093e \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e \u091a\u0948\u091f \u0914\u0930 \u092e\u0948\u0938\u0947\u0902\u091c\u0930 \u0915\u0947 \u0932\u093f\u090f \u0939\u0948.<a href=\"https:\/\/chat-messenger.com\/hi\/\u0928\u093f\u092f\u092e\u093e\u0935\u0932\u0940\/schedule_calendar\/\u092a\u0902\u091a\u093e\u0902\u0917\/\" title=\"\u0915\u0948\u0932\u0947\u0902\u0921\u0930\/\u0936\u0947\u0921\u094d\u092f\u0942\u0932 \u092a\u094d\u0930\u092c\u0902\u0927\u0928 \u092b\u093c\u0902\u0915\u094d\u0936\u0928\">\u0915\u0948\u0932\u0947\u0902\u0921\u0930\/\u0936\u0947\u0921\u094d\u092f\u0942\u0932 \u092a\u094d\u0930\u092c\u0902\u0927\u0928 \u092b\u093c\u0902\u0915\u094d\u0936\u0928<\/a>\u0935\u093e\u0938\u094d\u0924\u0935 \u092e\u0947\u0902 \u092a\u094d\u0930\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u091c\u093e\u0935\u093e \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u0917\u0923\u0928\u093e \u0906\u0938\u093e\u0928 \u091c\u094b\u0921\u093c\/\u0918\u091f\u093e\u0935 \u091c\u093e\u0935\u093e \u092e\u0947\u0902 \u0926\u093f\u0928\u093e\u0902\u0915\/\u0938\u092e\u092f \u0915\u0947 \u091c\u094b\u0921\u093c\/\u0918\u091f\u093e\u0935 \u0915\u0940 \u0906\u0938\u093e\u0928\u0940 \u0938\u0947 \u0917\u0923\u0928\u093e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u090f\u0915 \u0928\u092e\u0942\u0928\u093e \u0915\u093e\u0930\u094d\u092f\u0915\u094d\u0930\u092e [\u2026]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/posts\/954"}],"collection":[{"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":6,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":1877,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/posts\/954\/revisions\/1877"}],"wp:attachment":[{"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chat-messenger.com\/hi\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}