Lines Matching full:date
4 This module contains functions having to do with date time filter.
12 Convert a date time string to the desired format.
14 This function converts a date time string to the desired format.
15 The function takes the date_str argument, which can be a single date time
16 string or a list of date time strings.
19 specify the input date time pattern and the desired output format,
22 The function returns a list of date time strings in the desired format.
25 date_str (str or list): A date time string or a list of date time
27 date_format (str): The date time pattern of the input string(s).
28 desired_format (str): The desired output format for the date time
32 list: A list of date time strings in the desired format.
36 for date in date_str:
38 datetime.strptime(date, date_format).strftime(desired_format)