|
24 | 24 | #include "_datetime.h"
|
25 | 25 | #include "datetime_strings.h"
|
26 | 26 |
|
27 |
| -/* Platform-specific time_t typedef. Some platforms use 32 bit, some use 64 bit |
| 27 | +/* |
| 28 | + * Platform-specific time_t typedef. Some platforms use 32 bit, some use 64 bit |
28 | 29 | * and we just use the default with the exception of mingw, where we must use
|
29 | 30 | * 64 bit because MSVCRT version 9 does not have the (32 bit) localtime()
|
30 | 31 | * symbol, so we need to use the 64 bit version [1].
|
@@ -204,7 +205,8 @@ convert_datetimestruct_utc_to_local(npy_datetimestruct *out_dts_local,
|
204 | 205 | /* Make a copy of the input 'dts' to modify */
|
205 | 206 | *out_dts_local = *dts_utc;
|
206 | 207 |
|
207 |
| - /* For 32 bit NPY_TIME_T, the get_localtime() function does not work for |
| 208 | + /* |
| 209 | + * For 32 bit NPY_TIME_T, the get_localtime() function does not work for |
208 | 210 | * years later than 2038, see the comments above get_localtime(). So if the
|
209 | 211 | * year >= 2038, we instead call get_localtime() for the year 2036 or 2037
|
210 | 212 | * (depending on the leap year) which must work and at the end we add the
|
@@ -274,7 +276,8 @@ convert_datetimestruct_local_to_utc(npy_datetimestruct *out_dts_utc,
|
274 | 276 | /* Make a copy of the input 'dts' to modify */
|
275 | 277 | *out_dts_utc = *dts_local;
|
276 | 278 |
|
277 |
| - /* For 32 bit NPY_TIME_T, the get_mktime()/get_gmtime() functions do not |
| 279 | + /* |
| 280 | + * For 32 bit NPY_TIME_T, the get_mktime()/get_gmtime() functions do not |
278 | 281 | * work for years later than 2038. So if the year >= 2038, we instead call
|
279 | 282 | * get_mktime()/get_gmtime() for the year 2036 or 2037 (depending on the
|
280 | 283 | * leap year) which must work and at the end we add the 'year_correction'
|
|
0 commit comments