Learn R Programming

timeDate (version 2100.86)

midnightStandard: Midnight Standard

Description

Corrects 'timeDate' objects if they do not fulfill the ISO8601 midnigth standard.

Usage

midnightStandard(charvec, format)
midnightStandard2(charvec, format)

Arguments

charvec
a character string or vector of dates and times.
format
the format specification of the input character vector.

Value

  • midnightStandard returns a character object and midnightStandard2 returns a POSIXct object.

Examples

Run this code
## midnightStandard -  
   midnightStandard("2007-12-31 24:00")

Run the code above in your browser using DataLab