function format_date splitted into 2 function + run rustfmt on file lib.rs
Created by: n0npax
fn format_time splitted into fn get_time_tuple and fn format_time. Preparing lib.rs for changes in https://github.com/n0npax/extrautils/tree/add-cal-to-extrautils