| Home | Trees | Index | Help |
|
|---|
| Module YahooQuote :: Class QuoteDate |
|
object--+ |int--+ | QuoteDate
| Method Summary | |
|---|---|
Create a QuoteDate object. | |
Adds n days to this QuoteDate, and returns a new QuoteDate object | |
Subtracts n days from this QuoteDate, and returns a new QuoteDate object | |
Static method - converts a unix 'seconds since epoch' date into a QuoteDate string (Static method) | |
Static method - converts a 'yyyy-mmm-dd' yahoo date into a QuoteDate object (Static method) | |
Static method - instantiates a QuoteDate set to given year, month, day (Static method) | |
Static method - returns a QuoteDate object for today (Static method) | |
Converts this QuoteDate object to a unix 'seconds since epoch' time | |
returns tuple (year, month, day) | |
| Inherited from int | |
x.__abs__() <==> abs(x) | |
x.__and__(y) <==> x&y | |
x.__cmp__(y) <==> cmp(x,y) | |
x.__coerce__(y) <==> coerce(x, y) | |
x.__div__(y) <==> x/y | |
x.__divmod__(y) <==> divmod(x, y) | |
x.__float__() <==> float(x) | |
x.__floordiv__(y) <==> x//y | |
x.__getattribute__('name') <==> x.name | |
| |
x.__hash__() <==> hash(x) | |
x.__hex__() <==> hex(x) | |
x[y:z] <==> x[y.__index__():z.__index__()] | |
x.__int__() <==> int(x) | |
x.__invert__() <==> ~x | |
x.__long__() <==> long(x) | |
x.__lshift__(y) <==> x<<y | |
x.__mod__(y) <==> x%y | |
x.__mul__(y) <==> x*y | |
x.__neg__() <==> -x | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__nonzero__() <==> x != 0 | |
x.__oct__() <==> oct(x) | |
x.__or__(y) <==> x|y | |
x.__pos__() <==> +x | |
x.__pow__(y[, z]) <==> pow(x, y[, z]) | |
x.__radd__(y) <==> y+x | |
x.__rand__(y) <==> y&x | |
x.__rdiv__(y) <==> y/x | |
x.__rdivmod__(y) <==> divmod(y, x) | |
x.__repr__() <==> repr(x) | |
x.__rfloordiv__(y) <==> y//x | |
x.__rlshift__(y) <==> y<<x | |
x.__rmod__(y) <==> y%x | |
x.__rmul__(y) <==> y*x | |
x.__ror__(y) <==> y|x | |
y.__rpow__(x[, z]) <==> pow(x, y[, z]) | |
x.__rrshift__(y) <==> y>>x | |
x.__rshift__(y) <==> x>>y | |
x.__rsub__(y) <==> y-x | |
x.__rtruediv__(y) <==> y/x | |
x.__rxor__(y) <==> y^x | |
x.__str__() <==> str(x) | |
x.__truediv__(y) <==> x/y | |
x.__xor__(y) <==> x^y | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Instance Method Details |
|---|
__init__(self,
val)
Create a QuoteDate object. Argument can be an int or string, as long
as it is in the form YYYYMMDD
|
__add__(self,
n)
Adds n days to this QuoteDate, and returns a new QuoteDate
object
|
__sub__(self,
n)
Subtracts n days from this QuoteDate, and returns a new QuoteDate
object
|
toUnix(self)Converts this QuoteDate object to a unix 'seconds since epoch' time |
toYmd(self)returns tuple (year, month, day) |
| Static Method Details |
|---|
fromUnix(udate)Static method - converts a unix 'seconds since epoch' date into a QuoteDate string |
fromYahoo(ydate)Static method - converts a 'yyyy-mmm-dd' yahoo date into a QuoteDate object |
fromYmd(year, month, day)Static method - instantiates a QuoteDate set to given year, month, day |
now()Static method - returns a QuoteDate object for today |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jun 25 22:42:21 2007 | http://epydoc.sf.net |