B4A Library DateConvert library

Here is a library to translate Gregorian dates to Hebrew dates and vice versa, from year 2 and on!
Result can be numerical or Hebrew.

Edit: Version 1.1 includes another method isLeapH which returns if the Hebrew year is a Leap year.
Also correction of a bug which appears in devices but not in emulator !

Edit: ver. 1.2 includes two more methods: IsLeapG to find if a Gregorian year is a leap year, and HebMonthLength which returns the length of a Hebrew month per specified Hmonth and Hyear.
Edit: ver 1.2.2 - found and corrected one day shift in GregToHeb methods.
 

Attachments

  • DateConvert_1.2.2.zip
    6.8 KB · Views: 687
Last edited:

derez

Expert
Licensed User
Longtime User
Version 1.1 includes another method isLeapH which returns if the Hebrew year is a Leap year.
Also correction of a bug which appears in devices but not in emulator !
 

derez

Expert
Licensed User
Longtime User
Ver. 1.2 includes two more methods: IsLeapG to find if a Gregorian year is a leap year, and HebMonthLength which returns the length of a Hebrew month per specified Hmonth and Hyear.
 

derez

Expert
Licensed User
Longtime User
ver 1.2.1 - found and corrected one day shift in GregToHeb.
1.2.2 for the other GregToHeb method.
Took a while to see the problem as it appears differently on different devices/emulators.
 
Last edited:

urikupfer

Member
Licensed User
Longtime User
hi david
there is a problem with the calculations, check this month :2/2014 (one day shift)
 

derez

Expert
Licensed User
Longtime User
I have the correct days : today 16/2 I get 16/6/5774 (which is correct !)
 

ilan

Expert
Licensed User
Longtime User
hi, any chance to convert it to b4x? i need that lib that is working well on b4a to b4i. thanx
 

derez

Expert
Licensed User
Longtime User
The library is mathematics only, it works in b4j, try it in b4i !
 

ilan

Expert
Licensed User
Longtime User
Top