Skip to content

Commit 4f5f428

Browse files
committed
add macro
1 parent f100451 commit 4f5f428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/datetime.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ typedef struct
160160
#define PyDateTime_DELTA_GET_SECONDS(o) (((PyDateTime_Delta*)(o))->seconds)
161161
#define PyDateTime_DELTA_GET_MICROSECONDS(o) \
162162
(((PyDateTime_Delta*)(o))->microseconds)
163+
#define PyDateTime_DELTA_GET_NANOSECONDS(o) \
164+
(((PyDateTime_Delta*)(o))->nanoseconds)
163165

164166

165167
/* Define structure for C API. */

0 commit comments

Comments
 (0)