chimeric_tools.Time¶
- chimeric_tools.Time.fromDate2Epiweek(DateString)¶
Return the epidemic week that corresponds to a date in YYYY-mm-dd format
- Param:
a string in the format YYYY-mm-dd
- Returns:
the epiweek
- Return type:
INT
- chimeric_tools.Time.fromDates2Epiweeks(datelist)¶
Return the epidemic weeks that corresponds to a list of dates in YYYY-mm-dd format
- Param:
a list of strings in the format YYYY-mm-dd
- Returns:
a list of epiweeks
- Return type:
LIST
- chimeric_tools.Time.getClosestDay(numericDay)¶
The user enters a value corresponding to the days of the week: Sunday (0)-Saturday(6) and this function returns the closest date YYYY-mm-dd with this day of the week.
- Param:
numericDay(0-6)
- Returns:
YYYY-mm-dd
- Return type:
str
# Return the YYYY-MM-DD of the closest Wednesday getClosestDay(3)
- chimeric_tools.Time.todayEpiWeek()¶
Return the epidemic week that corresponds to today date in YYYY-mm-dd format
- Param:
None
- Returns:
the epiweek
- Return type:
INT