time -working with lib; how to get only tm_hour,tm_min and tm_sec into string?