Module time_diff

Source

Structs§

TimeDiff
The TimeDiff stuct has two main methods: short_form() & long_form()
the short_form() returns a short desciption about time diffrence\

Enums§

TimeAgoError
Timestamp

Functions§

convert_to_timestamp
Converts a valid datetime to timestamp
get_current_timestamp
Returns current timestamp
get_date_time
Converts datetime to Chrono DateTime<Local>
time_diff_between
start & end arguments can be a integer as timestamp or a string as datetime Returns a TimeDiff struct based on how much time is remaining or passed based on the diffrence between two datetime
The TimeDiff struct has two main methods , short_form() & long_form()
the short_form() returns a short description about time difference\
time_diff_now
datetime argument can be a integer as timestamp or a string as datetime Returns a TimeDiff struct based on how much time is remaining or passed based on the givin datetime
The TimeDiff struct has two methods , short_form() & long_form() \