Module rust_persian_tools::time_diff
source · Structs§
- The TimeDiff stuct has two main methods:
short_form()
&long_form()
theshort_form()
returns a short desciption about time diffrence
Enums§
Functions§
- Converts a valid datetime to timestamp
- Returns current timestamp
- Converts datetime to Chrono
DateTime<Local>
- start & end arguments can be a integer as timestamp or a string as datetime Returns a TimeDiff stuct based on how much time is remaining or passed based on the diffrence between two datetime
The TimeDiff stuct has two main methods ,short_form()
&long_form()
theshort_form()
returns a short desciption about time diffrence