コード例 #1
0
ファイル: gnrlocale.py プロジェクト: mbertoldi/genropy-core
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
ファイル: i18n.py プロジェクト: 404minds/quiz-forest
    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
ファイル: i18n.py プロジェクト: startup-one/cogofly
    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)
コード例 #6
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)
コード例 #7
0
ファイル: i18n.py プロジェクト: Hubble1/eventgrinder
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
ファイル: gnrlocale.py プロジェクト: genropy/genropy
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
ファイル: format.py プロジェクト: cloudappsetup/kalapy
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())
コード例 #10
0
ファイル: format.py プロジェクト: garyyeap/zoe-robot
def parse_datetime(string):
    """Parse a datetime from a string.
    """
    return dates.parse_datetime(string, locale=get_locale())