Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #56243

Re: Find day of week from a given date

From Cecil Bayona <cbayona@cbayona.com>
Newsgroups comp.lang.forth
Subject Re: Find day of week from a given date
Date 2017-03-24 16:01 -0500
Organization A noiseless patient Spider
Message-ID <ob419b$sph$1@dont-email.me> (permalink)
References (3 earlier) <c229e6c4-4449-4856-b61d-01a51c68c07c@googlegroups.com> <da8de2fc-7bbe-47a7-9a1b-a94631f4cfdb@googlegroups.com> <473ab3b6-caf6-4c10-9f89-1dac115604f3@googlegroups.com> <ob3oik$sk4$1@dont-email.me> <a0adfc98-1c1a-4a11-965f-82a45329f550@googlegroups.com>

Show all headers | View raw


On 3/24/2017 2:19 PM, Mark Wills wrote:
> On Friday, 24 March 2017 18:32:38 UTC, Cecil - k5nwa  wrote:
>>
>> I remember writing some routines in C to calculate the date of the week
>> and other date related functions, and I did a rough approximation found
>> in a book.
>>
>> That was a mistake as I soon found errors, so I did a lot of digging
>> into it and built routines that took all the quirks into its equation
>> and was flawless for date ranges way beyond what was needed but after
>> testing it I no longer had to worry about those routines and added them
>> to my personal library.
>>
>> I need to see if I still have a copy of the libraries since I started
>> using C and C++ again after a long break, date, time, input, output,
>> menu, B+ tree routines, all thoroughly tested, I know I have the Pascal
>> (Delphi) version available but it would be nice to find a copy of the C
>> versions.
>>
>> The B Tree functions are probably the most useful, as they were tweaked
>> to be very fast, people are now used to using someone else's database
>> routines such as SQL but these functions blew SQL away in terms of speed.
>>
>> --
>> Cecil - k5nwa
>
> I'd rather see the Pascal ones than the C ones ;-)
>
I switched from C to Borland Pascal when I was writing a large program 
for a school system and kept getting a mysterious crashes for weeks I 
could not figure it out as there was a large number of programs running. 
The error would crash the whole system so I could not tell where it was 
coming from.

I wrote a program to convert the C code to Pascal, after a couple of 
hours it would compile without errors and I had all the run time check 
options turned on to check for invalid conditions. Once I stated running 
it within hours Delphi popped several run time errors all having to do 
with pointers not quite right, after fixing those errors the code would 
not crash anymore so I stayed with Pascal for many years. That is until 
one of the buyers of Borland decided to increase the price of the 
software so much so I could not afford it anymore. The last version of 
Delphi I have is version 7 and that is pretty old but I can't afford 
their software anymore.

Too bad, as Borland Delphi is an excellent development environment for 
Windows. I thought for some of my projects to use Delphi instead of 
C/C++ but I don't have up to date software for Delphi but I do for C so 
that made the decision for me. There are some Delphi clone software 
packages such as Lazarus/Free Pascal but I have not used them so I have 
no clue how reliable they are.

I'm getting back into C due to a eForth project I'm playing with, and C 
is available for just about every CPU there is while Pascal does not 
share that capability although I do have Pascal for AVR, PIC, dsPIC, 
PIC32, ARM, and Windows.

-- 
Cecil - k5nwa

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-21 11:51 -0700
  Re: Find day of week from a given date "Wolfgang Allinger" <all2001@spambog.com> - 2017-03-21 18:17 -0300
    Re: Find day of week from a given date Hans Bezemer <the.beez.speaks@gmail.com> - 2017-03-22 17:47 +0100
      Re: Find day of week from a given date "Wolfgang Allinger" <all2001@spambog.com> - 2017-03-22 20:52 -0300
      Re: Find day of week from a given date Ron Aaron <rambamist@gmail.com> - 2017-03-23 06:57 +0200
  Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-22 19:16 -0700
    Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-22 19:25 -0700
    Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-22 21:28 -0700
      Re: Find day of week from a given date Alex <alex@rivadpm.com> - 2017-03-23 14:12 +0000
        Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-23 16:25 -0700
        Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-23 22:02 -0700
          Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-23 23:07 -0700
          Re: Find day of week from a given date Alex <alex@rivadpm.com> - 2017-03-24 08:46 +0000
    Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-23 05:35 -0700
      Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-23 15:23 -0700
        Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 09:38 -0700
          Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-24 10:24 -0700
            Re: Find day of week from a given date Cecil Bayona <cbayona@cbayona.com> - 2017-03-24 13:32 -0500
              Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 12:19 -0700
                Re: Find day of week from a given date Cecil Bayona <cbayona@cbayona.com> - 2017-03-24 16:01 -0500
            Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 12:00 -0700
              Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 12:19 -0700
                Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-24 23:35 -0700
                Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-25 01:59 -0700
                Re: Find day of week from a given date Julian Fondren <julian.fondren@gmail.com> - 2017-03-25 02:50 -0700
                Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-25 04:37 -0700
                Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-25 12:32 -0700
                Re: Find day of week from a given date Cecil Bayona <cbayona@cbayona.com> - 2017-03-25 14:56 -0500
                Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-26 02:27 -0700
                Re: Find day of week from a given date Cecil Bayona <cbayona@cbayona.com> - 2017-03-26 14:07 -0500
              Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 13:17 -0700
                Re: Find day of week from a given date Howerd <howerdo@yahoo.co.uk> - 2017-03-24 14:43 -0700
                Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 15:36 -0700
                Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-24 23:47 -0700
                Re: Find day of week from a given date Julian Fondren <julian.fondren@gmail.com> - 2017-03-25 03:00 -0700
                Re: Find day of week from a given date "Wolfgang Allinger" <all2001@spambog.com> - 2017-03-25 09:06 -0300
            Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 12:28 -0700
              Re: Find day of week from a given date Julian Fondren <julian.fondren@gmail.com> - 2017-03-24 12:49 -0700
                Re: Find day of week from a given date Mark Wills <markwills1970@gmail.com> - 2017-03-24 13:15 -0700
            Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-26 14:49 -0700
              Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-26 17:08 -0700
  Re: Find day of week from a given date humptydumpty <ouatubi@gmail.com> - 2017-03-25 04:23 -0700
    Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-26 15:00 -0700
      Re: Find day of week from a given date humptydumpty <ouatubi@gmail.com> - 2017-03-27 00:50 -0700
        Re: Find day of week from a given date hughaguilar96@gmail.com - 2017-03-27 09:14 -0700
  Re: Find day of week from a given date "Robert L." <No_spamming@noWhere_7073.org> - 2017-03-29 08:23 +0000

csiph-web