{"id":565,"date":"2015-07-21T10:44:48","date_gmt":"2015-07-21T14:44:48","guid":{"rendered":"http:\/\/fazigu.org\/blog\/?p=565"},"modified":"2015-07-21T10:55:03","modified_gmt":"2015-07-21T14:55:03","slug":"shell-nuggets-musing-on-dates","status":"publish","type":"post","link":"https:\/\/fazigu.org\/blog\/2015\/07\/21\/shell-nuggets-musing-on-dates\/","title":{"rendered":"Shell Nuggets: Musing on Dates"},"content":{"rendered":"<p>Nigh ever day I happen across some gem tucked away in the opaque vista of the *nix command-line shell. \u00a0 While attempting to contrive the proper arguments for a <em>date<\/em> command interpolation, the following editorial injection\u00a0from its\u00a0GNU\u00a0<em>info<\/em> entry\u00a0caught my fancy.<\/p>\n<pre><strong><span style=\"color: #008000;\">28 Date input formats<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">*********************<\/span><\/strong><\/pre>\n<pre><strong><span style=\"color: #008000;\">First, a quote:<\/span><\/strong><\/pre>\n<pre style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">Our units of temporal measurement, from seconds on up to months,<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">are so complicated, asymmetrical and disjunctive so as to make<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">coherent mental reckoning in time all but impossible. Indeed, had<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">some tyrannical god contrived to enslave our minds to time, to<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">make it all but impossible for us to escape subjection to sodden<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">routines and unpleasant surprises, he could hardly have done<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">better than handing down our present system. It is like a set of<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">trapezoidal building blocks, with no vertical or horizontal<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">surfaces, like a language in which the simplest thought demands<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">ornate constructions, useless particles and lengthy<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">circumlocutions. Unlike the more successful patterns of language<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">and science, which enable us to face experience boldly or at least<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">level-headedly, our system of temporal calculation silently and<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">persistently encourages our terror of time.<\/span><\/strong><\/pre>\n<pre style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">... It is as though architects had to measure length in feet,<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">width in meters and height in ells; as though basic instruction<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">manuals demanded a knowledge of five different languages. It is<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">no wonder then that we often look into our own immediate past or<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">future, last Tuesday or a week from Sunday, with feelings of<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">helpless confusion. ...<\/span><\/strong><\/pre>\n<pre style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">-- Robert Grudin, `Time and the Art of Living'.<\/span><\/strong><\/pre>\n<pre><strong><span style=\"color: #008000;\">This section describes the textual date representations that GNU<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">programs accept. These are the strings you, as a user, can supply as<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">arguments to the various programs. The C interface (via the `get_date'<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">function) is not described here.<\/span><\/strong><\/pre>\n<pre><\/pre>\n<p><span style=\"color: #000000;\">Now back to work.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nigh ever day I happen across some gem tucked away in the opaque vista of the *nix command-line shell. \u00a0 While attempting to contrive the proper arguments for a date command interpolation, the following editorial injection\u00a0from its\u00a0GNU\u00a0info entry\u00a0caught my fancy. 28 Date input formats ********************* First, a quote: Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,51],"tags":[29,16,68,26,53],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-hacking","category-whimsy","tag-bash","tag-emacs","tag-hacking","tag-linux","tag-whimsy-2"],"_links":{"self":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":8,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}