graphai.core.utils.time.date module
- graphai.core.utils.time.date.now()
Return current timestamp as a datetime object that prints as “2022-06-28 09:46:21.677968”
- graphai.core.utils.time.date.rescale(dates, min_date, max_date)
Maps a pandas Series between min_date and max_date linearly to [0, 1]. Dates below or above the given range are mapped to 0 or 1, respectively. Dates are assumed to be in format yyyy-mm-dd.
- graphai.core.utils.time.date.add_years(date, n_years)