Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

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
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.