[pywin32-checkins] pywin32/win32/src PyTime.cpp,1.15,1.16
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-05-18 08:31:56
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24266/win32/src Modified Files: PyTime.cpp Log Message: add autoduck comments for time object properties. Index: PyTime.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyTime.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** PyTime.cpp 10 Jan 2006 03:43:21 -0000 1.15 --- PyTime.cpp 18 May 2006 08:31:45 -0000 1.16 *************** *** 585,616 **** --- 585,624 ---- return NULL; } + // @prop int|year| if ( !strcmp(name, "year") ) { return PyInt_FromLong(st.wYear); } + // @prop int|month| else if ( !strcmp(name, "month") ) { return PyInt_FromLong(st.wMonth); } + // @prop int|weekday| else if ( !strcmp(name, "weekday") ) { return PyInt_FromLong(st.wDayOfWeek); } + // @prop int|day| else if ( !strcmp(name, "day") ) { return PyInt_FromLong(st.wDay); } + // @prop int|hour| else if ( !strcmp(name, "hour") ) { return PyInt_FromLong(st.wHour); } + // @prop int|minute| else if ( !strcmp(name, "minute") ) { return PyInt_FromLong(st.wMinute); } + // @prop int|second| else if ( !strcmp(name, "second") ) { return PyInt_FromLong(st.wSecond); } + // @prop int|msec| else if ( !strcmp(name, "msec") ) { |