Date Object

class pyfolio_performance.DateObject(dateStr)[source]

Represents a data of a transaction.

Parameters:

dateStr – Date string as used by portfolio performance in the XML.

getDay()[source]
Returns:

Returns the day in the month of the date.

Type:

int

getMonth()[source]
Returns:

Returns the month of the date.

Type:

int

getOrderValue()[source]

Used to order dates. Gives a comparable int s.t. getOrderValue(a) < getOrderValue(b) iff the date a was before the date b. :return: Returns an int representing the position in an order of the date. :type: int

getYear()[source]
Returns:

Returns the year of the date.

Type:

int