Added resolution in toSeconds