cmd.getMessage() implemented, deal with start time and end time that are passed current time