An interesting utility

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

Post Reply
brunellopulix
Posts: 80
Joined: Sat Apr 24, 2010 10:17 am

An interesting utility

Post by brunellopulix »

Hi everyone

try it and if you find errors publish

Gui Mode
IMG4.png
IMG4.png (78.15 KiB) Viewed 166167 times
Console Mode
IMG1.png
IMG1.png (151.03 KiB) Viewed 166167 times
IMG2.png
IMG2.png (109.97 KiB) Viewed 166167 times
Report
IMG3.png
IMG3.png (57.06 KiB) Viewed 166167 times

Brunello
Attachments
CHECKDAYS.zip
(4.99 MiB) Downloaded 484 times
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: An interesting utility

Post by Rathinagiri »

Really very interesting and useful also!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: An interesting utility

Post by serge_girard »

Thanks brunellopulix !
I will test soon.

Serge
There's nothing you can do that can't be done...
brunellopulix
Posts: 80
Joined: Sat Apr 24, 2010 10:17 am

Re: An interesting utility

Post by brunellopulix »

Found a bug in ElapsedDays.prg to delete:
If Left(Dtoc(d1),2) == [31]
d1--
Endif

Brunello
Attachments
ElapsedDays.zip
(1.46 KiB) Downloaded 464 times
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: An interesting utility

Post by serge_girard »

Would also be usefull to call it as a function with 2 dates and returning elapsed years, month, days...!
I will test next week.

Serge
There's nothing you can do that can't be done...
brunellopulix
Posts: 80
Joined: Sat Apr 24, 2010 10:17 am

Re: An interesting utility

Post by brunellopulix »

Hi
i found another bug.
February is a very complicated month and I am not giving up.
I corrected and updated the algorithm.
These tests seem fair to me.
Nuova immagine.jpg
Nuova immagine.jpg (270.8 KiB) Viewed 165666 times
Elapsed_Days.zip
(1.46 KiB) Downloaded 617 times
Brunello Pulix
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: An interesting utility

Post by serge_girard »

Thanks Brunello !
There's nothing you can do that can't be done...
brunellopulix
Posts: 80
Joined: Sat Apr 24, 2010 10:17 am

Re: An interesting utility

Post by brunellopulix »

Final update
-no bugs
-No error
-tests more complicated leap years and not all OK
- 100% reliable

if you have downloaded the previous ones I suggest you delete them to avoid getting confused
Brunello
Elapsed_Days.zip
(1012.66 KiB) Downloaded 689 times
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: An interesting utility

Post by serge_girard »

thanks !
There's nothing you can do that can't be done...
Post Reply