cufflinks.date_tools module

cufflinks.date_tools.dateToInt(date, strfmt='%Y%m%d')[source]

Converts a datetime date into int Parameters: ———–

date : datetime
date in datetime format
strfmt : string
format in which the int date will be generated
Example:
dateToInt(dt.date(2015,10,23),’%Y’)
cufflinks.date_tools.dateToString(date, strfmt='%Y%m%d')[source]
cufflinks.date_tools.getDateFromToday(delta, strfmt='%Y%m%d')[source]

Returns a string that represents a date n numbers of days from today. Parameters: ———–

delta : int
number of days
strfmt : string
format in which the date will be represented
cufflinks.date_tools.getDatefromDate(date, delta, strfmt='%Y%m%d')[source]
cufflinks.date_tools.intToDate(intDate)[source]

Converts an int format date into datetime Parameters: ———–

intDate : int
date in int format
Example:
intDate(20151023)
cufflinks.date_tools.stringToDate(stringDate, strfmt='%Y%m%d')[source]

Converts a string format date into datetime Parameters: ———–

stringDate : string
date in string format
strfmt : string
format in which the input date is represented
cufflinks.date_tools.stringToString(date, from_strfmt='%d%b%y', to_strfmt='%Y%m%d')[source]