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

Method getDay

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

intra-day useless for date class int getSeconds() const { return m_tm.tm_sec; } int getMinutes() const { return m_tm.tm_min; } int getHours() const { return m_tm.tm_hour; }

Source from the content-addressed store, hash-verified

76 //int getMinutes() const { return m_tm.tm_min; }
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

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