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
headings:

#+begin_src shell :results output raw
  tmpfile=$(mktemp /tmp/date.XXXXXX)
  for year in $(seq 2018 2068)
  do
      links http://aa.usno.navy.mil/seasons?year=${year} -dump | \
          grep -E 'helion|quinox|olstice' > ${tmpfile}
      while read -r line
      do
          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}
  done
  rm ${tmpfile}
#+end_src

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   ` Repository of Org files with important dates? 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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 \
    /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.
Code repositories for project(s) associated with this public inbox

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

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