Пример #1
0
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)
Пример #2
0
def parselocal_datetime(txt, locale):
    """add???
    
    :param txt: add???
    :param locale: add???
    :returns: add???
    """
    return dates.parse_datetime(txt, locale)
Пример #3
0
def parselocal_datetime(txt, locale):
    """add???
    
    :param txt: add???
    :param locale: add???
    :returns: add???
    """
    return dates.parse_datetime(txt, locale)
Пример #4
0
    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)
Пример #5
0
    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)
Пример #7
0
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)
Пример #8
0
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)
Пример #9
0
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())
Пример #10
0
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())