[Rcpp-commits] r2714 - pkg/Rcpp/inst/include/Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Dec 4 21:21:30 CET 2010


Author: edd
Date: 2010-12-04 21:21:24 +0100 (Sat, 04 Dec 2010)
New Revision: 2714

Modified:
   pkg/Rcpp/inst/include/Rcpp/Date.h
Log:
corrected getYear() following bug report by he shall not be named


Modified: pkg/Rcpp/inst/include/Rcpp/Date.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/Date.h	2010-12-04 17:33:57 UTC (rev 2713)
+++ pkg/Rcpp/inst/include/Rcpp/Date.h	2010-12-04 20:21:24 UTC (rev 2714)
@@ -44,7 +44,7 @@
 		//int getHours()   const { return m_tm.tm_hour; }
 		int getDay()     const { return m_tm.tm_mday; }
 		int getMonth()   const { return m_tm.tm_mon + 1; } 		// makes it 1 .. 12
-		int getYear()    const { return m_tm.tm_year + 1900; }
+		int getYear()    const { return m_tm.tm_year; }	
 		int getWeekday() const { return m_tm.tm_wday + 1; } 	// makes it 1 .. 7
 		int getYearday() const { return m_tm.tm_yday + 1; }     // makes it 1 .. 366
 



More information about the Rcpp-commits mailing list