MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / getMonth

Method getMonth

inst/include/Rcpp/date_datetime/Date.h:79–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 //int getHours() const { return m_tm.tm_hour; }
78 int getDay() const { return m_tm.tm_mday; }
79 int getMonth() const { return m_tm.tm_mon + 1; } // makes it 1 .. 12
80 int getYear() const { return m_tm.tm_year; } // does include 1900 (see Date.cpp)
81 int getWeekday() const { return m_tm.tm_wday + 1; } // makes it 1 .. 7
82 int getYearday() const { return m_tm.tm_yday + 1; } // makes it 1 .. 366

Callers 5

componentsFunction · 0.45
Date_get_functionsFunction · 0.45
Datetime_get_functionsFunction · 0.45
gmtime_mktimeFunction · 0.45
test_mktimeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_mktimeFunction · 0.36