identifyDate: identifies date

Description Usage Arguments Details Value Examples

Description

This function identifies the date of the given backup based on the file name. It separates it by underscores, dots and minus, substracts the essential numbers and converts it to a date. Optional one can choose the type and language of the printed date.

Usage

1
identifyDate(filename, type = "Date")

Arguments

filename

character string of the filename which contains a date

type

character string which defines the output, see details; default is "Date"

Details

There are four defined output types defined at this moment.

  1. "Date" is from class Date

  2. "numerical_EN" looks like "01 May 2018"

  3. "character_EN" looks like "1st of May 2018"

  4. "character_GER" looks like "1. Mai 2018"

Value

Depending on type, a Date or character will be returned

Examples

1
identifyDate("Knk_2018_05_02--09:53.BAK", type = "character_GER")

frumentum/foodcoop-storage documentation built on May 16, 2019, 3:33 p.m.