help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: even elder races get tired of waiting


From: Emanuel Berg
Subject: Re: even elder races get tired of waiting
Date: Mon, 22 Mar 2021 20:47:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]