{"id":181,"date":"2024-09-30T10:39:38","date_gmt":"2024-09-30T09:39:38","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=181"},"modified":"2024-09-30T12:08:29","modified_gmt":"2024-09-30T11:08:29","slug":"mwnci-date-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-date-function\/","title":{"rendered":"Mwnci date() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>date()<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>date()<\/i> function returns the current date and time as a 24-character string in the format:<\/p>\n<p>Sun Sep 16 02:00:52 1973<\/p>\n<p>The date() function is also equivalent to the MSL statement:<\/p>\n<p><a class=\"external text\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-asctime-function\" rel=\"nofollow\">asctime<\/a>(<a class=\"external text\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-time-function\" rel=\"nofollow\">time<\/a>())<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>today=date()\r\nprintln(\"The date is: \", today)\r\nprintln(\"The date is: \", date())\r\n\r\n\r\nThe date is: Thu Dec  1 20:38:28 2022\r\nThe date is: Thu Dec  1 20:38:28 2022\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax date() Description The date() function returns the current date and time as a 24-character string in the format: Sun Sep 16 02:00:52 1973 The date() function is also equivalent to the MSL statement: asctime(time()) Example today=date() println(&#8220;The date is: &#8220;, today) println(&#8220;The date is: &#8220;, date()) The date is: Thu Dec 1 20:38:28 2022 &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-date-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci date() Function&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-181","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/181\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/181\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}