Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #56180
| From | Alex <alex@rivadpm.com> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Find day of week from a given date |
| Date | 2017-03-23 14:12 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ob0kvm$442$1@dont-email.me> (permalink) |
| References | <26f921a3-3e9b-4292-a5e7-4f2e2ef0de99@googlegroups.com> <57330fd7-3493-4c25-8577-f50728476462@googlegroups.com> <1a5b4119-90e0-45d8-b03b-d277ab88d845@googlegroups.com> |
On 3/23/2017 04:28, hughaguilar96@gmail.com wrote: > On Wednesday, March 22, 2017 at 7:16:27 PM UTC-7, hughag...@gmail.com > wrote: >> Here is some code I wrote right now. > > Well, I compared it to these programs on the internet: > > agrees --- > http://people.albion.edu/imacinnes/calendar/Day_of_the_Week.html > agrees --- http://www.calculatorcat.com/date/day-of-week.html > disagrees --- https://www.timeanddate.com/date/weekday.html agrees > --- http://www.searchforancestors.com/utility/dayofweek.html agrees > --- http://calendarhome.com/calculate/day-of-week disagrees --- > http://www.mathsisfun.com/games/dayofweek.html > > I didn't test these thoroughly --- just picked out a few random dates > for comparison. > > The MATHISFUN calculator says that it uses Zeller's Algorithm for > calculating the day of the week. I looked this up on Wikipedia and it > appears to be no good What? This is peak stupid. > --- I didn't look at it closely, but I noticed > that it is not taking into account all the extra days of all the > previous leap years --- notice how I do this in my program: > > year first-year ?do I extra-day + loop You didn't look very closely then, since Zeller's algorithm works very well, and there's a complete and exhaustive explanation in the Wikipedia article. But algorithms, efficient & effective problem solving & design are well outside your ken. According to you, the measure of a programmers is yards of code. > > Christian Zeller came up with his formula in 1882 --- there weren't > any computers then --- so, how did he test it? > Dear god. I am speechless. -- Alex
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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