Skip to content

Commit e2585fb

Browse files
author
maechler
committed
comments
git-svn-id: https://svn.r-project.org/R/trunk@88971 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 8675c09 commit e2585fb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/datetime.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
/*
109109
110110
There are two implementation paths here.
111+
Inspectable from R, sessionInfo()$tzcode_type is either
112+
1) "system (<libc>)" (with '<libc>' = 'glibc' usually) or
113+
2) "internal"
111114
112115
1) Use the system functions for mktime, gmtime[_r], localtime[_r], strftime.
113116
Use the system time_t, struct tm and time-zone tables.
@@ -143,6 +146,7 @@ There are two implementation paths here.
143146
144147
*/
145148

149+
// ---------------------------
146150
#ifdef USE_INTERNAL_MKTIME
147151
// PATH 2)
148152
# include "datetime.h"
@@ -170,6 +174,8 @@ typedef struct tm stm;
170174
extern char *tzname[2];
171175

172176
#endif
177+
// ---------------------------
178+
173179

174180
#include <stdlib.h> /* for setenv or putenv */
175181
#define R_USE_SIGNALS 1
@@ -1466,7 +1472,7 @@ attribute_hidden SEXP do_formatPOSIXlt(SEXP call, SEXP op, SEXP args, SEXP env)
14661472
reset_tz(&tzsi);
14671473
UNPROTECT(3);
14681474
return ans;
1469-
}
1475+
} // do_formatPOSIXlt
14701476

14711477

14721478
// .Internal(strptime(as.character(x), format, tz))

0 commit comments

Comments
 (0)