{"id":146,"date":"2012-03-28T18:08:40","date_gmt":"2012-03-28T14:08:40","guid":{"rendered":"http:\/\/ilya2606.ru\/?p=146"},"modified":"2012-05-24T20:49:04","modified_gmt":"2012-05-24T16:49:04","slug":"%d0%ba%d0%b0%d0%ba-%d0%bf%d0%b5%d1%80%d0%b5%d0%b2%d0%b5%d1%81%d1%82%d0%b8-%d1%81%d0%b5%d0%ba%d1%83%d0%bd%d0%b4%d1%8b-%d0%b2-%d0%b4%d0%b0%d1%82%d1%83","status":"publish","type":"post","link":"http:\/\/ilya2606.ru\/?p=146","title":{"rendered":"\u041a\u0430\u043a \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0432 \u0434\u0430\u0442\u0443"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/clock-2011121.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-147\" title=\"clock-2011121\" src=\"http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/clock-2011121.jpg\" alt=\"\" width=\"200\" height=\"200\" srcset=\"http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/clock-2011121.jpg 200w, http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/clock-2011121-150x150.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0432\u0438\u0434 \u0434\u0430\u0442\u044b.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>(int) time &#8211; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0443\u043d\u0434<\/li>\n<\/ul>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f:<\/p>\n<ul>\n<li>\u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 NSString, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u044b.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>\u041a\u043e\u0434:<\/p>\n<pre dir=\"ltr\">- (NSString *)stringWithSeconds:(int)time {\n\tint seconds = time%60;\n\ttime = time\/60;\n\tint minutes = time%60;\n\ttime = time\/60;\n\tint hours = time%24;\n  int days = time\/24;\n\tNSString *string;\n\tif (days!=0) {\n\t\tstring = [NSString stringWithFormat:@\"%d:%02d:%02d:%02d\", days, hours, minutes, seconds];\n\t} else if (hours!=0) {\n\t\tstring = [NSString stringWithFormat:@\"%d:%02d:%02d\", hours, minutes, seconds];\n\t} else {\n\t\tstring = [NSString stringWithFormat:@\"%02d:%02d\", minutes, seconds];\n\t}\n\treturn string;\n}<\/pre>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e iT0ny<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><div align=\"right\"><div class=\"sharexyWidgetNoindexUniqueClassName\"><div id=\"shr_96181701\"><\/div><\/div><\/div><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0432\u0438\u0434 \u0434\u0430\u0442\u044b. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: (int) time &#8211; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f: \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 NSString, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u044b.<\/p>\n<div align=\"right\">\n<div class=\"sharexyWidgetNoindexUniqueClassName\">\n<div id=\"shr_96181701\"><\/div>\n<\/div>\n<\/div>\n<p><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,7,6],"tags":[],"_links":{"self":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/146"}],"collection":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":15,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":161,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/161"}],"wp:attachment":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}