emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Repository of Org files with important dates?
Date: Fri, 16 Apr 2021 16:55:01 +0100	[thread overview]
Message-ID: <87v98m1ay2.fsf@ucl.ac.uk> (raw)
In-Reply-To: <f6c0c3f760514a5b9b9cee65019d7378@VI1PR0102MB3327.eurprd01.prod.exchangelabs.com> (Rodrigo Morales's message of "Fri, 16 Apr 2021 02:16:12 +0000")

If you want solar based information (equinox, solstice, etc.), which is
not quite what you mentioned, I used this script to generate org file

#+begin_src shell :results output raw
  tmpfile=$(mktemp /tmp/date.XXXXXX)
  for year in $(seq 2018 2068)
      links http://aa.usno.navy.mil/seasons?year=${year} -dump | \
          grep -E 'helion|quinox|olstice' > ${tmpfile}
      while read -r line
          item=$(echo $line | awk '{print $1}')
          date="$(echo $line | awk '{print $5 " " $4 " " $3}') ${year}"
          isodate=$(date --date="${date}" +"%Y-%m-%d %H:%M")
          echo "** <${isodate}> $item"
      done < ${tmpfile}
  rm ${tmpfile}

This script assumes "links" is available but is otherwise sort of
portable for any bash like shell.

But I haven't used it since 2018 when I generated the data for the next
50 years so cannot guarantee the website is still there! :-)

: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-254-g37749c

       reply	other threads:[~2021-04-16 16:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f6c0c3f760514a5b9b9cee65019d7378@VI1PR0102MB3327.eurprd01.prod.exchangelabs.com>
2021-04-16 15:55 ` Eric S Fraga [this message]
2021-04-16 20:49   ` Marcin Borkowski
2021-04-17 23:42     ` David Masterson
2021-04-18  4:20       ` Greg Minshall
2021-04-18  4:29       ` Marcin Borkowski
2021-04-16  2:16 Rodrigo Morales
2021-04-16  4:59 ` Dr. Arne Babenhauserheide
2021-04-16  6:55 ` Diego Zamboni

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87v98m1ay2.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=moralesrodrigo1100@gmail.com \
    --subject='Re: Repository of Org files with important dates?' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).