def parselocal_datetime(txt, locale): """TODO :param txt: TODO :param locale: the current locale (e.g: en, en_us, it) """ return dates.parse_datetime(txt, locale)
def parselocal_datetime(txt, locale): """add??? :param txt: add??? :param locale: add??? :returns: add??? """ return dates.parse_datetime(txt, locale)
def parse_datetime(self, string): """Parses a date and time from a string. This function uses the date and time formats for the locale as a hint to determine the order in which the time fields appear in the string. :param string: The string containing the date and time. :returns: The parsed datetime object. """ return dates.parse_datetime(string, locale=self.locale)
def parse_datetime(string, locale=None): """Parses a date and time from a string. This function uses the date and time formats for the locale as a hint to determine the order in which the time fields appear in the string. :param string: The string containing the date and time. :param locale: A locale code. If not set, uses the currently loaded locale. :returns: The parsed datetime object. """ locale = locale or get_locale() return dates.parse_datetime(string, locale=locale)
def parselocal_datetime(txt, locale): """TODO :param txt: TODO :param locale: the current locale (e.g: en, en_us, it)""" return dates.parse_datetime(txt, locale)
def parse_datetime(string): """Parse a datetime from a string. """ return dates.parse_datetime(string, locale=get_locale())