in reply to Re^2: Trouble with time zones and Sun rise/set
in thread Trouble with time zones and Sun rise/set

Another odd thing I've just noticed is that you're "expected" result has sunset being significantly more than 12 hours after sunrise - yet April comes along after the March (autumn) equinox.

Cheers,
Rob
  • Comment on Re^3: Trouble with time zones and Sun rise/set

Replies are listed 'Best First'.
Re^4: Trouble with time zones and Sun rise/set
by GrandFather (Saint) on Apr 19, 2022 at 10:37 UTC

    That's easy: I was being lazy and dumb - I swapped the times instead of converting from UTC to NZDT! I'll leave it like that in the OP as a lesson in when not to be lazy (only particularly eagle eyed monks will notice in any case).

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
Re^4: Trouble with time zones and Sun rise/set
by LanX (Saint) on Apr 19, 2022 at 07:50 UTC
    I read this 10 times to make sense of it, till I realized that in the southern hemisphere winter is coming. 🤦

    (euro-centric, pre-coffinated me :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Yeah, Australians have christmas at around the summer solstice and the cold season in July. I must say, spending the christmas holiday on a surfboard instead behind a snow shovel sounds quite nice.

      perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
        > spending the christmas holiday on a surfboard instead behind a snow shovel sounds quite nice.

        High time for Austr(al)ian reunification, would also eliminate another linguistic stumble stone ... ;-)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

        update

        Fun fact: Australia is named after "South" in Latin and Austria after "East" in German (pseudo-latinized) 🤦

      ...I realized that in the southern hemisphere winter is coming.

      It took me a while as well.

      Strange how some things we take for granted even though intellectually we know they are not universal. Like March being spring for me at +52.45 degrees latitude!