gbmodel/model_sqlalchemy.py
def split_dates(self, params):
        """
        Split dates into integer year, month and day
        to convert the string to datetime object
        Input: parameter of dates
        Outout: parameter of datetime objects
        """
        for i in params:
            if params[i]:
                params[i] = params[i].split('-')
                params[i] = datetime.datetime(int(params[i][0]), int(params[i][1]), int(params[i][2]))
            else:
                params[i] = None
        return params

        Split dates into integer year, month and day
        to convert the string to datetime object
        Input: parameter of dates
        Outout: parameter of datetime objects
        
Split dates into integer year, month and day
to convert the string to datetime object
Input: parameter of dates
Outout: parameter of datetime objects
Split dates into integer year month and day to convert the string to datetime object Input : parameter of dates Outout : parameter of datetime objects
def split_dates(self, params):
        for i in params:
            if params[i]:
                params[i] = params[i].split('-')
                params[i] = datetime.datetime(int(params[i][0]), int(params[i][1]), int(params[i][2]))
            else:
                params[i] = None
        return params
def split_dates ( self , params ) : for i in params : if params [ i ] : params [ i ] = params [ i ] . split ( '-' ) params [ i ] = datetime . datetime ( int ( params [ i ] [ 0 ] ) , int ( params [ i ] [ 1 ] ) , int ( params [ i ] [ 2 ] ) ) else : params [ i ] = None return params
Split dates into integer year, month and day
to convert the string to datetime object
Input: parameter of dates
Outout: parameter of datetime objects
Split dates into integer year month and day to convert the string to datetime object Input : parameter of dates Outout : parameter of datetime objects
"""
        Split dates into integer year, month and day
        to convert the string to datetime object
        Input: parameter of dates
        Outout: parameter of datetime objects
        """
self
params