[Coco] Julian Date

phillip taylor ptaylor2446 at gmail.com
Tue May 23 18:38:28 EDT 2017


Thanks and will be fine.

On 5/20/17, Wayne Campbell <asa.rand at gmail.com> wrote:
> I don't write C code. It will be Basic09, as that is my preferred language
> on the CoCo.
>
> I will simply make the code better by using a couple of Boolean variables
> and I may do some variable renaming since B09 allows for 29-character
> variable names.
>
>
> On May 20, 2017 7:00 PM, "phillip taylor" <ptaylor2446 at gmail.com> wrote:
>
>> Thanks but If your going to convert the code to C not many users will
>> be able to understand how it works. It was intended to be used with
>> Os9Budget and runs as a procedure file so it can be called by the
>> other procedure files in Os9Budget.
>>
>> On 5/20/17, Gene Heskett <gheskett at shentel.net> wrote:
>> > On Saturday 20 May 2017 17:42:03 Wayne Campbell wrote:
>> >
>> >> I read your code. Not bad, but could be better. I will revamp it and
>> >> post my alteration.
>> >>
>> >> On May 20, 2017 11:57 AM, "phillip taylor" <ptaylor2446 at gmail.com>
>> > wrote:
>> >> > I hope that you all enjoy the julian date that I posted here.
>> >> >
>> >> > --
>> >> > Coco mailing list
>> >> > Coco at maltedmedia.com
>> >> > https://pairlist5.pair.net/mailman/listinfo/coco
>> >
>> > This code is incomplete, and will be wrong once every 400 years.
>> > The code in the original K&R C book shows how it should be done.
>> >
>> > Basically if the year is divisible by 4 its a leap year UNLESS the date
>> > is divisible by 400 without a remainder, then it is not a leap year.
>> > 2000 was not a leap year. 2400 will not be a leap year.  The C manual
>> > uses the mod(year,4) or mod(year,400) to determine this IIRC.
>> >
>> > Cheers, Gene Heskett
>> > --
>> > "There are four boxes to be used in defense of liberty:
>> >  soap, ballot, jury, and ammo. Please use in that order."
>> > -Ed Howdershelt (Author)
>> > Genes Web page <http://geneslinuxbox.net:6309/gene>
>> >
>> > --
>> > Coco mailing list
>> > Coco at maltedmedia.com
>> > https://pairlist5.pair.net/mailman/listinfo/coco
>> >
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list