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

Alas, it's not that simple. If I change the date to the 2nd I get:

Rise: 2022-04-02T18:35:20 Set: 2022-04-02T06:10:25 (Pacific/Auckland +)

which is altogether consistent with the Sun rising a little later each day as we head into winter assuming the reported time is UTC and we are in the Southern Hemisphere.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^3: Trouble with time zones and Sun rise/set
by syphilis (Archbishop) on Apr 19, 2022 at 03:45 UTC
    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

      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
      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";'
        ...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!