123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|613|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Finding day's name?

Mon, 15 Oct 2007, 05:25
spinal
I am trying to reliably find a day of the week. After looking at a hand full of algorithms on the new, trying them, failing, I have done it the simplest way i could.


It seems accurate enough, but can someone double check it?

-=-=-
Check out my excellent homepage!
Mon, 15 Oct 2007, 07:22
Phoenix
To me, your code seems to be working fine. If you have any problems then perhaps you should try out this:

www.blitzbasic.com/codearcs/codearcs.php?code=2081
Mon, 15 Oct 2007, 17:46
spinal
Excellent!
That page has the first day-finding code I have tried that actually worked!


I also translate it to C for my menu.


-=-=-
Check out my excellent homepage!
Tue, 16 Oct 2007, 06:11
spinal
IT for the DS, I'm fairly sure the firmware takes care of those tings.

-=-=-
Check out my excellent homepage!
Mon, 15 Apr 2019, 03:51
spinal
Wow! Good job this was here, I had this exact problem on a new platform. It seems there is very little resources for correctly calculating the day of the week, all you get is API calls (which in my current case, returns completely the wrong day).

12 years later and libraries still have the same issues...

-=-=-
Check out my excellent homepage!
Tue, 16 Apr 2019, 02:11
TomToad
This is from one of the first programming books I bought. Weekday. From a collection of BASIC games published in Creative Computing magazine.