For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > May 2004 > Shortest day of year









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Shortest day of year
Matt.Lan@btinternet.com

2004-05-25, 9:30 pm

Hi all

Does anyone know where I can find any source code to work out the shortest
day of the year and longest day there are many star charting programs about
but not one just for the sun and not in source code as I would like

Feel Free to Email me

Thanks in advance

Matt


Veign

2004-05-25, 10:30 pm

What do you mean workout the shortest day? - Maybe I am missing something

Shortest Day of the year:
about 21 December for the northern hemisphere,
about 21 June for the southern hemisphere.

--
Chris Hanscom
MVP (Visual Basic)
http://www.veign.com
--

"Matt.Lan@btinternet.com" <matt.lan@btinternet.com> wrote in message
news:c90p5c$5rv$1@hercules.btinternet.com...
> Hi all
>
> Does anyone know where I can find any source code to work out the shortest
> day of the year and longest day there are many star charting programs

about
> but not one just for the sun and not in source code as I would like
>
> Feel Free to Email me
>
> Thanks in advance
>
> Matt
>
>



Duane Bozarth

2004-05-25, 10:30 pm

"Matt.Lan@btinternet.com" wrote:
>
> Hi all
>
> Does anyone know where I can find any source code to work out the shortest
> day of the year and longest day there are many star charting programs about
> but not one just for the sun and not in source code as I would like


Google is your friend..."sunrise sunset algorithm source VB" let to...

http://www.scottandmichelle.net/sco...e/code-031.html

First entry amongst a bunch of others--claims implements a NOAA
Java-based applet w/VB source and references to where it came from...

Anything else? :)
Duane Bozarth

2004-05-25, 10:30 pm

Veign wrote:
>
> What do you mean workout the shortest day? - Maybe I am missing something
>
> Shortest Day of the year:
> about 21 December for the northern hemisphere,
> about 21 June for the southern hemisphere.


I think it's about the "about" in there--it isn't always 12/21
precisely.
Matt.Lan@btinternet.com

2004-05-26, 12:31 am

> Anything else? :)

The Program Was Written for USA
I will have to find my longitude and latitude and another variable for where
I live
England > London

Thanks any way really good of you to point it out for me.

It took ages for your mail to reach my news server look forward to hearing
from you in the tomorrow afternoon..

Matt

"Duane Bozarth" <dp_bozarth@swko.dot.net> wrote in message
news:40B3F368.9290E3C@swko.dot.net...
> "Matt.Lan@btinternet.com" wrote:
shortest[color=darkred]
about[color=darkred]
>
> Google is your friend..."sunrise sunset algorithm source VB" let to...
>
> http://www.scottandmichelle.net/sco...e/code-031.html
>
> First entry amongst a bunch of others--claims implements a NOAA
> Java-based applet w/VB source and references to where it came from...
>
> Anything else? :)



Matt.Lan@btinternet.com

2004-05-26, 12:31 am

Dear Duane Bozarth
Sorry my apology's it does work for England I got it working and learnt
something about class modules
much thanks again
best regards matt

"Matt.Lan@btinternet.com" <matt.lan@btinternet.com> wrote in message
news:c9111g$2aq$1@titan.btinternet.com...
>
> The Program Was Written for USA
> I will have to find my longitude and latitude and another variable for

where
> I live
> England > London
>
> Thanks any way really good of you to point it out for me.
>
> It took ages for your mail to reach my news server look forward to hearing
> from you in the tomorrow afternoon..
>
> Matt
>
> "Duane Bozarth" <dp_bozarth@swko.dot.net> wrote in message
> news:40B3F368.9290E3C@swko.dot.net...
> shortest
> about
>
>



Jacquelin Hardy

2004-05-26, 6:30 pm

Matt, the shortest and the longest day of the year are the solstice days of
summer, and winter. Always same days, year after year. No formulae is needed
for that. But if you want to know what date is the earliest sunrise, or
latest sunset, this is another question. Have a look at:

http://www.analemma.com


Jacquelin Hardy

"Matt.Lan@btinternet.com" <matt.lan@btinternet.com> wrote in message
news:c90p5c$5rv$1@hercules.btinternet.com...
> Hi all
>
> Does anyone know where I can find any source code to work out the shortest
> day of the year and longest day there are many star charting programs

about
> but not one just for the sun and not in source code as I would like
>
> Feel Free to Email me
>
> Thanks in advance
>
> Matt
>
>



Ken Halter

2004-05-26, 6:30 pm

Jacquelin Hardy wrote:
> Matt, the shortest and the longest day of the year are the solstice days of
> summer, and winter. Always same days, year after year. No formulae is needed
> for that. But if you want to know what date is the earliest sunrise, or
> latest sunset, this is another question. Have a look at:
>
> http://www.analemma.com
>
>
> Jacquelin Hardy


I'm always a trouble maker <g>.... the shortest/longest days if you live
in an area that recognizes daylight savings are:

Shortest = Day after turning the clock ahead 1 hour (day is 23 hours)
Longest = Day after turning the clock back one hour (day is 25 hours)

Yeah... I know....


--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Bob O`Bob

2004-05-26, 7:30 pm

Jacquelin Hardy wrote:
>
> Matt, the shortest and the longest day of the year are the solstice days of
> summer, and winter. Always same days, year after year.


Close, but wrong.

for years 1992-2020:

June 20: 2008, 2012, 2016, 2020
June 21 Otherwise

Dec 22: 1994, 1995, 1998, 1999,
2002, 2003, 2006, 2007,
2011, 2015, 2019
Dec 21 Otherwise


source <http://aa.usno.navy.mil/data/docs/EarthSeasons.html>



Bob
U-CDK_CHARLES\\Charles

2004-05-27, 11:31 am

On Wed, 26 May 2004 17:36:19 -0400, Jacquelin Hardy
<jachardy@removethisvideotron.ca> wrote:
> Matt, the shortest and the longest day of the year are the solstice days of
> summer, and winter. Always same days, year after year. No formulae is needed
> for that. But if you want to know what date is the earliest sunrise, or
> latest sunset, this is another question. Have a look at:
>
> http://www.analemma.com
>


It varies because our calender doesn't quite match the Earth's orbit.
Otherwise, we'd not need leap years.

DAGS on astronomical calculations.

Duane Bozarth

2004-05-28, 10:30 pm

U-CDK_CHARLES\\Charles wrote:
>
> ... our calender doesn't quite match the Earth's orbit.


I always thought it was that the orbit didn't match our calendars... :)
Bob O`Bob

2004-05-28, 10:30 pm

Duane Bozarth wrote:
>
> U-CDK_CHARLES\\Charles wrote:
>
> I always thought it was that the orbit didn't match our calendars... :)



Which came first?


Bob
--
Duane Bozarth

2004-05-28, 10:30 pm

Bob O`Bob wrote:
>
> Duane Bozarth wrote:
>
> Which came first?


The egg...
Larry Serflaten

2004-05-29, 12:30 am


"Duane Bozarth" <dp_bozarth@swko.dot.net> wrote
>
> The egg...


.... or the face?


<g>
Wes Spikes

2004-05-29, 12:30 am

Lets end this old question of "Which came first, the chicken or the egg?".
First, let me make note that the question only poses "the egg", not "the egg
of the chicken" (or something like that). Now, I'm an evoloutionist...so for
me the chicken evolved from other species. In which case, the other species
also had eggs before the chicken evolved from whatever it's precessor was.
Hope you all have a good day.

-Wes

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:#XFFZwSREHA.2572@TK2MSFTNGP12.phx.gbl...
>
> "Duane Bozarth" <dp_bozarth@swko.dot.net> wrote
>
> ... or the face?
>
>
> <g>



Bob O`Bob

2004-05-29, 1:30 am

Wes Spikes wrote:
>
> Lets end this old question of "Which came first, the chicken or the egg?".
> First, let me make note that the question only poses "the egg", not "the egg
> of the chicken" (or something like that). Now, I'm an evoloutionist...so for
> me the chicken evolved from other species. In which case, the other species
> also had eggs before the chicken evolved from whatever it's precessor was.
> Hope you all have a good day.



It goes even a little deeper than that.
The first chicken hatched from an egg that was laid by some animal which
for convenience's sake we'll call not-quite-exactly-a-chicken, or NQEAK.
But even though an NQEAK laid that egg, a chicken hatched from it, so it
was a *chicken egg*.



Bob
J French

2004-05-29, 2:30 am

On Fri, 28 May 2004 20:55:52 -0700, Bob O`Bob
<filterbob@yahoogroups.com> wrote:

>Wes Spikes wrote:
>
>
>It goes even a little deeper than that.
>The first chicken hatched from an egg that was laid by some animal which
>for convenience's sake we'll call not-quite-exactly-a-chicken, or NQEAK.
>But even though an NQEAK laid that egg, a chicken hatched from it, so it
>was a *chicken egg*.


Possibly,
but imagine a human foetus grown in a glass flask
(eg: Brave New World)
Is the flask then a 'human flask' ?

Consider also if NQEAKs lay eggs that are bright green and spiked like
a porcupine ...
Steve Garman

2004-05-29, 4:30 am

J French wrote:

> On Fri, 28 May 2004 20:55:52 -0700, Bob O`Bob
> <filterbob@yahoogroups.com> wrote:
>
>
>
>
> Possibly,
> but imagine a human foetus grown in a glass flask
> (eg: Brave New World)
> Is the flask then a 'human flask' ?
>
> Consider also if NQEAKs lay eggs that are bright green and spiked like
> a porcupine ...


This would probably explain why NQUEAKs became extinct.

J French

2004-05-29, 7:30 am

On Sat, 29 May 2004 08:30:48 +0100, Steve Garman
<news@garman.demon.co.uk> wrote:

<snip>

>
>This would probably explain why NQUEAKs became extinct.


No, IIRC they all got SARS (chicken flu)

Wes Spikes

2004-05-29, 2:30 pm

LMFAO...god...Either way, it seems we all agree that the egg came frist!

-Wes

"J French" <erewhon@nowhere.com> wrote in message
news:40b86896.23304355@news.btclick.com...
> On Sat, 29 May 2004 08:30:48 +0100, Steve Garman
> <news@garman.demon.co.uk> wrote:
>
> <snip>
>
>
> No, IIRC they all got SARS (chicken flu)
>



Tom Johns

2004-05-29, 2:30 pm

I disagree. Bearing in mind the truth is often spoken in jest haven't you
heard the tale from the divinely inspired ancient book of humour:
A chicken and an egg are lying in bed. The chicken is leaning against the
headboard smoking a cigarette with a satisfied smile on its face. The egg,
looking a bit pissed off, grabs the sheet, rolls over and says;

"Well, I guess we finally answered THAT question."

"Wes Spikes" <MornThdr@NOSPAMverizon.net> wrote in message
news:Ip3uc.6248$g15.1259@nwrddc02.gnilink.net...
> LMFAO...god...Either way, it seems we all agree that the egg came frist!
>
> -Wes




Wes Spikes

2004-05-29, 3:30 pm

Yup...i've seen it before!

-Wes

"Tom Johns" <Tom Johns@SPAMocs.net> wrote in message
news:9%3uc.296$5z1.174@newsfe6-win...
> I disagree. Bearing in mind the truth is often spoken in jest haven't you
> heard the tale from the divinely inspired ancient book of humour:
> A chicken and an egg are lying in bed. The chicken is leaning against the
> headboard smoking a cigarette with a satisfied smile on its face. The egg,
> looking a bit pissed off, grabs the sheet, rolls over and says;
>
> "Well, I guess we finally answered THAT question."
>
> "Wes Spikes" <MornThdr@NOSPAMverizon.net> wrote in message
> news:Ip3uc.6248$g15.1259@nwrddc02.gnilink.net...
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com