get.last.monthday.of.year: Get the last month and day of the year

View source: R/helpfunctions.R

get.last.monthday.of.yearR Documentation

Get the last month and day of the year

Description

Get the last month and day of the year as a character sting, separated by the specified separator.

Usage

get.last.monthday.of.year(d, sep = "-")

Arguments

d

An exemplar date.

sep

Separator to use.

Details

This is a utility function necessitated by 360-day calendars. Works on PCICt objects.

Value

A string (like "12-30", or "12-31")

Examples

library(PCICt)
last.mday <- get.last.monthday.of.year(as.PCICt("2011-01-01", cal="360"))


ECA-D/climind documentation built on Nov. 26, 2022, 10:20 a.m.