Example #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)
Example #2
0
def parselocal_datetime(txt, locale):
    """add???
    
    :param txt: add???
    :param locale: add???
    :returns: add???
    """
    return dates.parse_datetime(txt, locale)
Example #3
0
def parselocal_datetime(txt, locale):
    """add???
    
    :param txt: add???
    :param locale: add???
    :returns: add???
    """
    return dates.parse_datetime(txt, locale)
Example #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)
Example #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)
Example #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)
Example #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)
Example #9
0
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())
Example #10
0
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())