Crate epoch_to_human

Source

Functions§

date_to_epoch
Converts a human-readable date string to epoch time. The input date format should be “YYYY-MM-DD HH:MM:SS”. Returns a Result with the epoch time in seconds or an error if parsing fails.
epoch_to_date
Converts epoch time to a human-readable date string. The output date format will be “YYYY-MM-DD HH:MM:SS”.