fetch time for logging