simple.date: Simple representation and retrieval of Date/Time

View source: R/NCmisc.R

simple.dateR Documentation

Simple representation and retrieval of Date/Time

Description

Retrieve a simple representation of date_time or just date, for generating day/time specific file names, etc.

Usage

simple.date(sep = "_", long = FALSE, time = TRUE)

Arguments

sep

character, separator to use for the date/time, eg, underscore or <space> " ".

long

logical, whether to display a longer version of the date and time, or just a simple version

time

logical, whether to include the time, or just the date

Value

A string containing the date: MMMDD and optionally time HRam/pm. Or if long=TRUE, a longer representation: DAY MM DD HH.MM.SS YYYY.

Examples

simple.date()
simple.date(" ",long=TRUE)
simple.date(time=FALSE)

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.