add get_now_time and trim function.