flat assembler
Message board for the users of flat assembler.

Index > Windows > Eternal calendar DLL library (FASM).

Author
Thread Post new topic Reply to topic
MHajduk



Joined: 30 Mar 2006
Posts: 6115
Location: Poland
MHajduk 18 Jun 2008, 17:01
Hi!

I want to present here library of the calendar functions written by me with FASM.

Functions exported from this DLL library give the programmer some abilities:
  • works with dates from the interval of 11 million years:

    • from 1 Jan 5843880 BCE to 3 Aug 5915100 for the Julian calendar,
    • from 30 Dec 5844001 BCE to 17 Jan 5915222 for the Gregorian calendar,

  • convenient conversions between Julian and Gregorian calendars for dates from supported time interval,
  • calculation of the day of the week for the given date,
  • calculation of the number of the day in the year,
  • determining if the given year is leap in chosen calendar,
  • calculation of the "absolute" day number for the given date (it could be used to calculation of the distance between two dates).
Here you can download source of the library (encoded in UTF-8), compiled DLL and description in PDF file.

Project's homepage: http://mikhajduk.houa.org/EN/Calendar.php

Because library was described in 3 language versions here you have also:
Post 18 Jun 2008, 17:01
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 18 Jun 2008, 17:10
I am impressed that you can calculate the leap years and things for such long periods. Not even the experts have been able to predict the leap years so far ahead! See here if you are interested.
Post 18 Jun 2008, 17:10
View user's profile Send private message Visit poster's website Reply with quote
asmhack



Joined: 01 Feb 2008
Posts: 431
asmhack 18 Jun 2008, 17:21
nice work man
Post 18 Jun 2008, 17:21
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 18 Jun 2008, 20:14
I liked very much the documentation, have you done it with TeX/LaTeX?
Post 18 Jun 2008, 20:14
View user's profile Send private message Reply with quote
AlexP



Joined: 14 Nov 2007
Posts: 561
Location: Out the window. Yes, that one.
AlexP 18 Jun 2008, 20:28
Very nice code, and the documentation I agree is beautifully done! Great work!
Post 18 Jun 2008, 20:28
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6115
Location: Poland
MHajduk 19 Jun 2008, 08:23
LocoDelAssembly wrote:
I liked very much the documentation, have you done it with TeX/LaTeX?
Yes, it's written with LaTeX and compiled with pdflatex program. Smile
Post 19 Jun 2008, 08:23
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 24 Jun 2008, 17:38
[clap] A very good example of ... well everything from coding to documentation.
Post 24 Jun 2008, 17:38
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.