Esempio n. 1
0
def quarter_ends(year):
    columns = [datefuncs.end_of_prev_year(int(year)).isoformat()]
    column_titles = ['end of %d' % (int(year)-1)]

    for q in [1,2,3,4]:
        columns.append(datefuncs.end_of_quarter(q, int(year)).isoformat())
        column_titles.append('end of Q%d' %q)
    
    return columns, column_titles
Esempio n. 2
0
def quarter_ends(year):
    columns = [datefuncs.end_of_prev_year(int(year)).isoformat()]
    column_titles = ['end of %d' % (int(year) - 1)]

    for q in [1, 2, 3, 4]:
        columns.append(datefuncs.end_of_quarter(q, int(year)).isoformat())
        column_titles.append('end of Q%d' % q)

    return columns, column_titles
Esempio n. 3
0
def annual_ends(year):
    columns = [
        datefuncs.end_of_prev_year(int(year)).isoformat(), year,
        datefuncs.end_of_year(int(year)).isoformat()
    ]
    column_titles = [
        'end of %d' % (int(year) - 1),
        'chg in %s' % year,
        'end of %s' % year
    ]
    return columns, column_titles
Esempio n. 4
0
def monthly_ends(year):
    columns = [datefuncs.end_of_prev_year(int(year))] + datefuncs.month_ends(int(year))
    columns = [x.isoformat() for x in columns]
    column_titles = ['end of %d' % (int(year)-1)] + MONTHS
    return columns, column_titles
Esempio n. 5
0
def annual_ends(year):
    columns = [datefuncs.end_of_prev_year(int(year)).isoformat(), year, datefuncs.end_of_year(int(year)).isoformat()]
    column_titles = ['end of %d' % (int(year)-1), 'chg in %s' % year, 'end of %s' % year]
    return columns, column_titles
Esempio n. 6
0
def monthly_ends(year):
    columns = [datefuncs.end_of_prev_year(int(year))] + datefuncs.month_ends(
        int(year))
    columns = [x.isoformat() for x in columns]
    column_titles = ['end of %d' % (int(year) - 1)] + MONTHS
    return columns, column_titles