{"id":16,"date":"2016-08-21T19:43:00","date_gmt":"2016-08-21T22:43:00","guid":{"rendered":"http:\/\/escovadordebit.com.br\/?p=16"},"modified":"2016-08-21T19:43:00","modified_gmt":"2016-08-21T22:43:00","slug":"groovy-acrescentar-minutos-em-uma-data-string","status":"publish","type":"post","link":"https:\/\/escovadordebit.com.br\/?p=16","title":{"rendered":"Groovy &#8211; Acrescentar minutos em uma Data String"},"content":{"rendered":"<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\" \/><\/a><\/div>\n<p><code><br \/>import static java.util.Calendar.*<br \/>import java.text.SimpleDateFormat<\/p>\n<p>def cal = Calendar.instance<br \/>SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\")<br \/>String hora = \"9:20\"<br \/>cal.setTime(sdf.parse(hora))<br \/>cal.add(cal.MINUTE, 120)<\/p>\n<p>println cal.time<br \/>println cal.time.format(\"HH:mm\")<br \/><\/code><\/p>\n<p>Para efetuar os teste do script: <a href=\"https:\/\/groovyconsole.appspot.com\/\" target=\"_blank\" rel=\"noopener\">AKI!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>import static java.util.Calendar.*import java.text.SimpleDateFormat def cal = Calendar.instanceSimpleDateFormat sdf = new SimpleDateFormat(&#8220;HH:mm&#8221;)String hora = &#8220;9:20&#8243;cal.setTime(sdf.parse(hora))cal.add(cal.MINUTE, 120) println cal.timeprintln cal.time.format(&#8220;HH:mm&#8221;) Para efetuar os teste do script: AKI!<\/p>\n","protected":false},"author":2,"featured_media":132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[32,38],"class_list":["post-16","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codebit","tag-groovy","tag-java"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Groovy - Acrescentar minutos em uma Data String - Escovador de Bit<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/escovadordebit.com.br\/?p=16\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Groovy - Acrescentar minutos em uma Data String - Escovador de Bit\" \/>\n<meta property=\"og:description\" content=\"import static java.util.Calendar.*import java.text.SimpleDateFormat def cal = Calendar.instanceSimpleDateFormat sdf = new SimpleDateFormat(&quot;HH:mm&quot;)String hora = &quot;9:20&quot;cal.setTime(sdf.parse(hora))cal.add(cal.MINUTE, 120) println cal.timeprintln cal.time.format(&quot;HH:mm&quot;) Para efetuar os teste do script: AKI!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/escovadordebit.com.br\/?p=16\" \/>\n<meta property=\"og:site_name\" content=\"Escovador de Bit\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-21T22:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Martin Muller martin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Martin Muller martin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#article\",\"isPartOf\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16\"},\"author\":{\"name\":\"Martin Muller martin\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653\"},\"headline\":\"Groovy &#8211; Acrescentar minutos em uma Data String\",\"datePublished\":\"2016-08-21T22:43:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16\"},\"wordCount\":15,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\"},\"image\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#primaryimage\"},\"thumbnailUrl\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\",\"keywords\":[\"Groovy\",\"JAVA\"],\"articleSection\":[\"CodeBit\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/escovadordebit.com.br\/?p=16#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16\",\"url\":\"https:\/\/escovadordebit.com.br\/?p=16\",\"name\":\"Groovy - Acrescentar minutos em uma Data String - Escovador de Bit\",\"isPartOf\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#primaryimage\"},\"image\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#primaryimage\"},\"thumbnailUrl\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\",\"datePublished\":\"2016-08-21T22:43:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/escovadordebit.com.br\/?p=16\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#primaryimage\",\"url\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\",\"contentUrl\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=16#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/escovadordebit.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Groovy &#8211; Acrescentar minutos em uma Data String\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/escovadordebit.com.br\/#website\",\"url\":\"https:\/\/escovadordebit.com.br\/\",\"name\":\"Escovador de Bit\",\"description\":\"Escove escove at\u00e9 achar o problema\",\"publisher\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/escovadordebit.com.br\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\",\"name\":\"Escovador de Bit\",\"url\":\"https:\/\/escovadordebit.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png\",\"contentUrl\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png\",\"width\":99,\"height\":75,\"caption\":\"Escovador de Bit\"},\"image\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653\",\"name\":\"Martin Muller martin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Martin Muller martin\"},\"url\":\"https:\/\/escovadordebit.com.br\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Groovy - Acrescentar minutos em uma Data String - Escovador de Bit","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/escovadordebit.com.br\/?p=16","og_locale":"pt_BR","og_type":"article","og_title":"Groovy - Acrescentar minutos em uma Data String - Escovador de Bit","og_description":"import static java.util.Calendar.*import java.text.SimpleDateFormat def cal = Calendar.instanceSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\")String hora = \"9:20\"cal.setTime(sdf.parse(hora))cal.add(cal.MINUTE, 120) println cal.timeprintln cal.time.format(\"HH:mm\") Para efetuar os teste do script: AKI!","og_url":"https:\/\/escovadordebit.com.br\/?p=16","og_site_name":"Escovador de Bit","article_published_time":"2016-08-21T22:43:00+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg","type":"image\/jpeg"}],"author":"Martin Muller martin","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Martin Muller martin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/escovadordebit.com.br\/?p=16#article","isPartOf":{"@id":"https:\/\/escovadordebit.com.br\/?p=16"},"author":{"name":"Martin Muller martin","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653"},"headline":"Groovy &#8211; Acrescentar minutos em uma Data String","datePublished":"2016-08-21T22:43:00+00:00","mainEntityOfPage":{"@id":"https:\/\/escovadordebit.com.br\/?p=16"},"wordCount":15,"commentCount":0,"publisher":{"@id":"https:\/\/escovadordebit.com.br\/#organization"},"image":{"@id":"https:\/\/escovadordebit.com.br\/?p=16#primaryimage"},"thumbnailUrl":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg","keywords":["Groovy","JAVA"],"articleSection":["CodeBit"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/escovadordebit.com.br\/?p=16#respond"]}]},{"@type":"WebPage","@id":"https:\/\/escovadordebit.com.br\/?p=16","url":"https:\/\/escovadordebit.com.br\/?p=16","name":"Groovy - Acrescentar minutos em uma Data String - Escovador de Bit","isPartOf":{"@id":"https:\/\/escovadordebit.com.br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/escovadordebit.com.br\/?p=16#primaryimage"},"image":{"@id":"https:\/\/escovadordebit.com.br\/?p=16#primaryimage"},"thumbnailUrl":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg","datePublished":"2016-08-21T22:43:00+00:00","breadcrumb":{"@id":"https:\/\/escovadordebit.com.br\/?p=16#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/escovadordebit.com.br\/?p=16"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/escovadordebit.com.br\/?p=16#primaryimage","url":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg","contentUrl":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2016\/08\/main-thumb-t-10281-200-Yv60lN8LL4Mh5aAqyUV7m2uMXGiQhkWz-1.jpeg","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/escovadordebit.com.br\/?p=16#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/escovadordebit.com.br\/"},{"@type":"ListItem","position":2,"name":"Groovy &#8211; Acrescentar minutos em uma Data String"}]},{"@type":"WebSite","@id":"https:\/\/escovadordebit.com.br\/#website","url":"https:\/\/escovadordebit.com.br\/","name":"Escovador de Bit","description":"Escove escove at\u00e9 achar o problema","publisher":{"@id":"https:\/\/escovadordebit.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/escovadordebit.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/escovadordebit.com.br\/#organization","name":"Escovador de Bit","url":"https:\/\/escovadordebit.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png","contentUrl":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png","width":99,"height":75,"caption":"Escovador de Bit"},"image":{"@id":"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653","name":"Martin Muller martin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Martin Muller martin"},"url":"https:\/\/escovadordebit.com.br\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":0,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/media\/132"}],"wp:attachment":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}