Staging
v0.5.1
https://github.com/python/cpython
Revision ea2e7898a1d1b43187b6f5d18905c49c55532746 authored by Eric Smith on 25 February 2010, 14:20:36 UTC, committed by Eric Smith on 25 February 2010, 14:20:36 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r78442 | eric.smith | 2010-02-25 09:18:57 -0500 (Thu, 25 Feb 2010) | 9 lines

  Merged revisions 78440 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r78440 | eric.smith | 2010-02-25 09:14:35 -0500 (Thu, 25 Feb 2010) | 1 line

    Issue #5965: Add documentation for parts of format specification language.
  ........
................
1 parent fa2936c
Raw File
Tip revision: ea2e7898a1d1b43187b6f5d18905c49c55532746 authored by Eric Smith on 25 February 2010, 14:20:36 UTC
Merged revisions 78442 via svnmerge from
Tip revision: ea2e789
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