unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: even elder races get tired of waiting
Date: Mon, 22 Mar 2021 20:47:47 +0100	[thread overview]
Message-ID: <87wntzj7h8.fsf@zoho.eu> (raw)
In-Reply-To: YFjrnPARl+pnp+t/@protected.localdomain

Jean Louis wrote:

>> This is for practical use, how many days till my date with
>> Sandra Bullock [...]
>
> Is good example, would we be 30 years back in time. (This
> way the warriors will not easily get a clue.)

HA!

But Good "Old" Sandy (born 1964-07-26) was the highest-paid
actress in 2010 and 2014 [1] so perhaps she can afford to buy
really exclusive food, at least? Then again, while I'm not
always the perfect gentleman I am gentleman enough to not have
the dame pay the bill on a date... No, all of this will have
to be postponed until after my upcoming employment of the
fort-knox.el script...

> For that I use `age' that again uses PostgreSQL:
>
> (defun age (date)
>   "Returns the age by using PostgreSQL. It is usable to find out
> the age of people"

Maybe ... if that's what happens ;)

>   (let* ((command (format "psql -Stc \"SELECT age(date('%s'));\"" date))
> 	 (age (shell-command-to-string command))
> 	 (age (string-trim age))
> 	 (age (replace-regexp-in-string " mon " " month " age))
> 	 (age (replace-regexp-in-string " mons " " months " age)))
>     age))
>
> I do trust the PostgreSQL and that would mean you have lost
> somewhere those 3 days, who knows, maybe with Sandra
> in sauna.

This is getting too confusing...

OK, but let's stick to Sandra, I know that is an foreign
concept in your part of the world but bear with me. How old is
she? What do you get with PostgreSQL?

I get:

Lisp: [2]

(time-from 1964 07 26 0 0 0 2021 03 22 0 0 0) ; 56y 253d 0h 0m 0s [1]

zsh/dateutils.ddiff: [3]

$ time-from 1964-07-26
56y 7m 24d 0h 0min 0s

(Oh, no, now I see, not even normalized output format...)

[1] https://en.wikipedia.org/wiki/Sandra_bullock
[2] https://dataswamp.org/~incal/emacs-init/time-cmp.el
[3] https://dataswamp.org/~incal/conf/.zsh/time

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




  reply	other threads:[~2021-03-22 19:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-20 20:37 even elder races get tired of waiting Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-21 14:01 ` Jean Louis
2021-03-21 14:19 ` Jean Louis
2021-03-21 15:12   ` Jude DaShiell
2021-03-21 17:10     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-21 17:29       ` Jean Louis
2021-03-21 17:38         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22  7:21           ` Jean Louis
2021-03-21 22:30         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22  7:48           ` Jean Louis
2021-03-22 18:29             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22 19:10               ` Jean Louis
2021-03-22 19:47                 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-03-22 20:31                   ` Jean Louis
2021-03-22 21:33                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22 21:40                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22 22:43                       ` Jean Louis
2021-03-22 23:34                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22 23:38                       ` Jean Louis
2021-03-22 23:52                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22  8:42           ` Jean Louis
2021-03-22 18:31             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22 19:21               ` Jean Louis
2021-03-21 17:13     ` Jean Louis
2021-03-21 19:24       ` Jude DaShiell
2021-03-21 22:34         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-22  7:54         ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wntzj7h8.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).