super_auto_comb.utils ===================== .. py:module:: super_auto_comb.utils Functions --------- .. autoapisummary:: super_auto_comb.utils.parse_input_date super_auto_comb.utils.generate_dates super_auto_comb.utils.is_summer_time_changing_between super_auto_comb.utils.today Module Contents --------------- .. py:function:: parse_input_date(s) Smart interpretation of input date. Float input > 1 is interpreted as MJD. Float input <= 1 is interpreted as "day ago" (-1 = yesterday, 0 = today, 1 = tomorrow, etc...) Otherwise inputs are parsed as date YYYY-MM-DD. :param s: Input. :type s: str :returns: **mjd** -- date as MJD rounded to integer. :rtype: float .. py:function:: generate_dates(start, stop) Generate dates from start and stop. :param start: Start date as MJD. :type start: float :param stop: Stop date as MJD. :type stop: float :rtype: list of Datetime .. py:function:: is_summer_time_changing_between(date1, date2, timezone='Europe/Rome') Check for summer time changes by comparing the timezone infos of two dates. :param date1: First datetime. :type date1: datetime :param date2: Second datetime. :type date2: datetime :param timezone: Timezone name, by default "Europe/Rome". :type timezone: str :returns: True if the two dates as different times. :rtype: bool .. py:function:: today() Return today as YYYY-MM-DD