{"id":3258,"date":"2024-08-15T14:51:27","date_gmt":"2024-08-15T11:51:27","guid":{"rendered":"https:\/\/docs.unibell.tech\/?page_id=3258"},"modified":"2024-08-16T08:16:25","modified_gmt":"2024-08-16T05:16:25","slug":"date-and-time","status":"publish","type":"page","link":"https:\/\/docs.unibell.tech\/?page_id=3258","title":{"rendered":"Date and time"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/08\/date_time.png\"><img decoding=\"async\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/08\/date_time.png\" alt=\"\" class=\"wp-image-3807\"\/><\/a><\/figure>\n\n\n\n<p>This block is used to assign to a variable a value of the current date and time according to a preset template.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/08\/date_time1.png\"><img decoding=\"async\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/08\/date_time1.png\" alt=\"\" class=\"wp-image-3809\"\/><\/a><\/figure>\n\n\n\n<p>A value can be assigned to a variable in any format according to the JAVA\u2019s syntax of formatting dates. To fill the \u2018Template of date\/time\u2019 fields use the symbols of this syntax.<\/p>\n\n\n\n<p>The template specifies the date\/time in the format:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>dd \u2014 day;<\/li>\n\n\n\n<li>MM \u2014 month;<\/li>\n\n\n\n<li>yyyy \u2014 year;<\/li>\n\n\n\n<li>HH \u2014 watch;<\/li>\n\n\n\n<li>ss \u2014 seconds;<\/li>\n\n\n\n<li>mm \u2014 minutes;<\/li>\n\n\n\n<li>w &#8211; week.<\/li>\n<\/ul>\n\n\n\n<p>For instance, if you need the robot to pronounce what the year is now then the template should be in the \u2018yyyy\u2019 format. And if you need the robot to pronounce the current week number in the year then the template should be \u2018w\u2019.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This block is used to assign to a variable a value of the current date and time according to a preset template. A value can be assigned to a variable in any format according to the JAVA\u2019s syntax of formatting dates. To fill the \u2018Template of date\/time\u2019 fields use the symbols of this syntax. The <a href=\"https:\/\/docs.unibell.tech\/?page_id=3258\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Date and time<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":{"footnotes":""},"class_list":["post-3258","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3258"}],"version-history":[{"count":3,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3258\/revisions"}],"predecessor-version":[{"id":3407,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3258\/revisions\/3407"}],"wp:attachment":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}