DS1307 time to int?

int tyear = now.year();

does not work? Can you show the output you get?