DateHelper
Functions
are_same_day @staticmethod
date1 :
datetime date2 :
datetime Return type :
bool convert_datetime_to_utc @staticmethod
datetime_ :
datetime Return type :
datetime date_range @staticmethod
This method is usefule to iterate over a range of dates. One iteration is one day.
start_date :
date end_date :
date include_end_date :
bool - False from_iso_str @staticmethod
date_str :
str Return type :
datetime from_str @staticmethod
date_str :
str format :
str Return type :
datetime from_utc_milliseconds @staticmethod
utc_milliseconds :
int Return type :
datetime get_duration_pretty_text @staticmethod
Return a string representing the duration in a human readable way.
duration_in_seconds :
float Return type :
str now_utc @staticmethod
Return type :
datetime now_utc_as_milliseconds @staticmethod
Return type :
int to_iso_str @staticmethod
date :
datetime Return type :
str to_rfc7231_str @staticmethod
convert a datetime to a string in the RFC 7231 format. Useful for HTTP headers.
date :
datetime Return type :
str