File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ namespace Rcpp {
137137 Date newdate (date.m_d );
138138 newdate.m_d += offset;
139139 time_t t = 24 *60 *60 * newdate.m_d ; // days since epoch to seconds since epo
140- // newdate.m_tm = *gmtime(&t); // this may need a Windows fix, re-check R's datetime.c
141140 newdate.m_tm = *gmtime_ (&t);
142141 return newdate;
143142 }
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ namespace Rcpp {
7474 void update_tm () {
7575 if (R_FINITE (m_dt)) {
7676 time_t t = static_cast <time_t >(std::floor (m_dt));
77- m_tm = *gmtime_ (&t); // this may need a Windows fix, re-check R's datetime.c
77+ m_tm = *gmtime_ (&t);
7878 // m_us is fractional (micro)secs as diff. between (fractional) m_dt and m_tm
7979 m_us = static_cast <int >(::Rf_fround ( (m_dt - t) * 1.0e6 , 0.0 ));
8080 } else {
@@ -107,7 +107,7 @@ namespace Rcpp {
107107 Datetime newdt (datetime.m_dt );
108108 newdt.m_dt += offset;
109109 time_t t = static_cast <time_t >(std::floor (newdt.m_dt ));
110- newdt.m_tm = *gmtime_ (&t); // this may need a Windows fix, re-check R's dat
110+ newdt.m_tm = *gmtime_ (&t);
111111 newdt.m_us = static_cast <int >(::Rf_fround ( (newdt.m_dt - t) * 1.0e6 , 0.0 ));
112112 return newdt;
113113 }
You can’t perform that action at this time.
0 commit comments