ported xpl_time to 0.4