search for: daysinmonth

Displaying 2 results from an estimated 2 matches for "daysinmonth".

Did you mean: daysinmonths
2008 Apr 23
1
Time arithmetic
I am a bit worried I am reinventing the wheel. Isn't there a calendar system in R? I have written a function to add months to a date and return the number of days resulting. I am newish to R so I am hoping there is a package that can do this sort of date arithmetic for me... Worik DaysInMonths <- function(s,d){ ## Days in d months from s sdate <- MSTD(s) ## Get day, month and the year sd <- as.double(days(sdate)) sm <- as.double(months(sdate)) sy <- as.double.difftime(years(sdate)) sm <- sm+d while(sm > 12){ sm <- sm-12 sy <- sy+1 }...
2007 Apr 27
0
[ANN:] new package xlsReadWrite*Pro*: announce + update.
...n, xls.save, xls.cancel, xls.close - languagesAndLCID, dateTimeToStr, dateTimeToIsoStr, strToDate, strToDateTime, strToTime, isoStrToDateTime, shortDateFormat, longTimeFormat, encodeDateTime, encodeDate, encodeTime, decodeDateTime - dateOf, timeOf, isInLeapYear, isPM, weeksInYear, daysInYear, daysInMonth, now, today, isToday, yesterday, tomorrow, yearOf, monthOf, weekOf, dayOf, hourOf, minuteOf, secondOf, milliSecondOf, startOfTheYear, endOfTheYear, startOfTheMonth, endOfTheMonth, startOfTheWeek, endOfTheWeek, startOfTheDay, endOfTheDay, dayOfTheYear, weekOfTheMonth, dayOfTheWeek, hourOfTheDay, min...