{"id":455,"date":"2024-10-11T11:52:41","date_gmt":"2024-10-11T10:52:41","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=455"},"modified":"2024-10-11T11:52:41","modified_gmt":"2024-10-11T10:52:41","slug":"mwnci-isolder-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isolder-function\/","title":{"rendered":"Mwnci isolder() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>isnewer<strong>(<em>string<\/em>, <em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>isolder()<\/i> function returns <em>true<\/em> if the first named file is older than the second, otherwise <em>false<\/em> is returned.<\/p>\n<p>For the example below we&#8217;ll check the two files:<\/p>\n<p>-rw-r&#8211;r&#8211; 1 eccles users 1865 Jul 17 08:59 \/home\/eccles\/.bashrc<br \/>\n-rw-r&#8211;r&#8211; 1 eccles users 675 Apr 25 2022 \/home\/eccles\/.profile<\/p>\n<h2>Example<\/h2>\n<pre>include(\"file\")\r\n\r\nprintln(isolder(\"\/home\/eccles\/.bashrc\", \"\/home\/eccles\/.profile\")))\r\n\r\nfalse<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax isnewer(string, string) Description The isolder() function returns true if the first named file is older than the second, otherwise false is returned. For the example below we&#8217;ll check the two files: -rw-r&#8211;r&#8211; 1 eccles users 1865 Jul 17 08:59 \/home\/eccles\/.bashrc -rw-r&#8211;r&#8211; 1 eccles users 675 Apr 25 2022 \/home\/eccles\/.profile Example include(&#8220;file&#8221;) println(isolder(&#8220;\/home\/eccles\/.bashrc&#8221;, &#8220;\/home\/eccles\/.profile&#8221;))) false<\/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-455","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/455","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=455"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/455\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/455\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}