示例#1
0
def get_year_start(hyear):
    ''' calculate the year's julian and length
    
        return: a tupple of the julian number for 1'st of Tishrey
                and the length of the year
    '''
    
    hcal = HcalWrapper()
    
    # get Julian for year start
    hcal.set_hdate(1, 1, hyear)
    jd_1_tishrey = hcal.get_julian()
    hyear_length = hcal.get_size_of_year()
    
    return (jd_1_tishrey, hyear_length)