Staging
v0.5.1
https://github.com/python/cpython
Revision 6e359bdabca89b401f8e0fe151f64101500ebd22 authored by Walter Dörwald on 04 May 2009, 16:10:10 UTC, committed by Walter Dörwald on 04 May 2009, 16:10:10 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72278 | walter.doerwald | 2009-05-04 18:03:03 +0200 (Mo, 04 Mai 2009) | 2 lines

  Fix typos.
........
1 parent bbb9be7
Raw File
Tip revision: 6e359bdabca89b401f8e0fe151f64101500ebd22 authored by Walter Dörwald on 04 May 2009, 16:10:10 UTC
Merged revisions 72278 via svnmerge from
Tip revision: 6e359bd
timefuncs.h
/*  timefuncs.h
 */

/* Utility function related to timemodule.c. */

#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Cast double x to time_t, but raise ValueError if x is too large
 * to fit in a time_t.  ValueError is set on return iff the return
 * value is (time_t)-1 and PyErr_Occurred().
 */
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top