all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to say "💝 Happy Valentine's Day 💝"
@ 2022-02-14  9:10 Jean Louis
  2022-02-14 10:54 ` 황병희
  2022-02-15  4:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 5+ messages in thread
From: Jean Louis @ 2022-02-14  9:10 UTC (permalink / raw)
  To: Help GNU Emacs


Today I am sending to a list of girl friends information about the
Valentine's Day. It is a link to online description of what that day
is about.

I am using my RCD Template Interpolation System for Emacs: 
https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html

I am using it as a pre-processor for various markup languages and
simple text. 

And then insert something like this in the description of the link:

⟦ (if (string= (substring (rcd-iso-date) 5) "02-14") 
  "💝 Happy Valentine's Day 💝") ⟧



(defun rcd-iso-date ()
  (format-time-string "%Y-%m-%d"))

Then if the day of today is (more or less) 2022-02-14 then the
function will look into "02-14" and if that is the case, the string
"💝 Happy Valentine's Day 💝" will appear in the message.

But if the day is not that one, nothing appears.

One can understand it better by watching this video:
https://gnu.support/images/2022/02/2022-02-14/2022-02-14-12:00:04.ogv


Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to say "💝 Happy Valentine's Day 💝"
  2022-02-14  9:10 How to say "💝 Happy Valentine's Day 💝" Jean Louis
@ 2022-02-14 10:54 ` 황병희
  2022-02-15  4:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
  1 sibling, 0 replies; 5+ messages in thread
From: 황병희 @ 2022-02-14 10:54 UTC (permalink / raw)
  To: Help GNU Emacs

Jean Louis <bugs@gnu.support> writes:

> Today I am sending to a list of girl friends information about the
> Valentine's Day. It is a link to online description of what that day
> is about.
>
> I am using my RCD Template Interpolation System for Emacs: 
> https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html
>
> I am using it as a pre-processor for various markup languages and
> simple text. 
>
> And then insert something like this in the description of the link:
>
> ⟦ (if (string= (substring (rcd-iso-date) 5) "02-14") 
>   "💝 Happy Valentine's Day 💝") ⟧
>
>
>
> (defun rcd-iso-date ()
>   (format-time-string "%Y-%m-%d"))
>
> Then if the day of today is (more or less) 2022-02-14 then the
> function will look into "02-14" and if that is the case, the string
> "💝 Happy Valentine's Day 💝" will appear in the message.
>
> But if the day is not that one, nothing appears.
>
> One can understand it better by watching this video:
> https://gnu.support/images/2022/02/2022-02-14/2022-02-14-12:00:04.ogv


Hello Jean!

Actually i like these style UTF-8 letters! Thanks for share!

(👍 👍 👍 😀 😀 😀)

Sincerely, Gnus fan Byung-Hee

-- 
황병희, 대숲농장
경북 울진군 평해읍 평오곡길 213-12 [36363]
비상 연락망: 010-7558-5952



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to say "💝 Happy Valentine's Day 💝"
  2022-02-14  9:10 How to say "💝 Happy Valentine's Day 💝" Jean Louis
  2022-02-14 10:54 ` 황병희
@ 2022-02-15  4:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-02-16  6:34   ` Marcin Borkowski
  1 sibling, 1 reply; 5+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-15  4:33 UTC (permalink / raw)
  To: help-gnu-emacs

Jean Louis wrote:

> I am using my RCD Template Interpolation System for Emacs: 
> https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html

Hah, that's your own system ...

Is https://hyperscope.link yet another one of your websites?

> ⟦ (if (string= (substring (rcd-iso-date) 5) "02-14") 
>   "💝 Happy Valentine's Day 💝") ⟧

`when'

> (defun rcd-iso-date ()
>   (format-time-string "%Y-%m-%d"))

While I agree that is the best representation for a date, if
you check out date(1) you can read

  -I[FMT], --iso-8601[=FMT]
    output  date/time  in ISO 8601 format.  FMT='date' for date only
    (the default), 'hours', 'minutes', 'seconds', or 'ns'  for  date
    and    time    to    the    indicated    precision.     Example:
    2006-08-14T02:34:56-06:00

and that's the only specific reference to ISO. So I guess it
ain't ISO without the timestamp as well. Just saying, not
saying you should use it ...

> One can understand it better by watching this video:
> https://gnu.support/images/2022/02/2022-02-14/2022-02-14-12:00:04.ogv

Hm, what kind of site is this

  https://gnu.support

anyway?

A certain Mr. Jean Louis seems to be a prominent
contributor ...

And I hope I, by answering the way I did, contributed to
fulfilling the true purpose of your OP ...

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to say "💝 Happy Valentine's Day 💝"
  2022-02-15  4:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-16  6:34   ` Marcin Borkowski
  2022-02-16  7:44     ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2022-02-16  6:34 UTC (permalink / raw)
  To: Emanuel Berg; +Cc: help-gnu-emacs


On 2022-02-15, at 05:33, Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> [...] So I guess it ain't ISO without the timestamp as well.

It is.

https://en.wikipedia.org/wiki/ISO_8601

Best,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to say "💝 Happy Valentine's Day 💝"
  2022-02-16  6:34   ` Marcin Borkowski
@ 2022-02-16  7:44     ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 5+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-16  7:44 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski wrote:

>> [...] So I guess it ain't ISO without the timestamp as well.
>
> It is.
>
> https://en.wikipedia.org/wiki/ISO_8601

I misread the man page for date(1), 'date -I' (I for ISO) or
equivalently 'date --iso-8601' _does_ output

  2022-02-16

while the mentioned "2006-08-14T02:34:56-06:00" is an example
what one can do with FMT, which is optional.

I suppose that example is there because that long/detailed
format can be useful in computer systems, not just the details
but also the form (no whitespace and always the same length
with the individual data items in specific fields almost, like
a packet specification in a network protocol ...).

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-16  7:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14  9:10 How to say "💝 Happy Valentine's Day 💝" Jean Louis
2022-02-14 10:54 ` 황병희
2022-02-15  4:33 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-16  6:34   ` Marcin Borkowski
2022-02-16  7:44     ` Emanuel Berg via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.