convert to int before func
Merge pull request #19 from waneka/convert_time

convert to int before func