<h1 id="a-flight-itinerary-in-bash">A flight itinerary in Bash</h1>
<p>My daughter flew out to New Zealand before Christmas 2017 to spend some time with her brother, who had been there with his girlfriend since November. I saw her flight itinerary from the airline, but had no idea of how the times related to time back home, so I wrote a little Bash script to calculate times in UTC (my local timezone).</p>
<p>Both of my children have travelled a fair bit in the past few years. I like to keep track of where they are and how they are progressing through their journeys because otherwise I tend to worry. This one was a reasonably simple journey, two flights via Doha in Qatar, with not too long a wait between them. The overall journey was <em>long</em> of course.</p>
<p>When my daughter flew out to Indonesia in 2015 (4 flights and a boat trip, over 38 hours travel time) I built a spreadsheet. Just whatever provides a good distraction!</p>
<p>The rest of the notes, including details of the <code>date</code> command and the script I wrote can be found <a href="https://hackerpublicradio.org/eps/hpr2469/full_shownotes.html">here</a>.</p>
<h2 id="links">Links</h2>
<ul>
<li>GNU documentation for <a href="https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation"><code>date</code></a> (You can also use <code>man date</code> or <code>info date</code> for the full details. I prefer the HTML version because I don't like the <code>info</code> tool very much).</li>
<li>The <a href="https://www.gnu.org/software/bash/manual/bash.html">GNU Bash Reference Manual</a></li>
<li>Dann Wasko's <em>&quot;Linux in the Shell&quot;</em> episode <a href="https://hackerpublicradio.org/eps.php?id=1182"><em>hpr1182 :: LiTS 023: Date</em></a>, which is full of useful information.</li>
<li>Resources:
<ul>
<li>The script I wrote, called <a href="https://hackerpublicradio.org/eps/hpr2469/edi_akl"><code>edi_akl</code></a> (named to denote the starting and ending airports).</li>
</ul></li>
</ul>
