Learn R Programming

timeDate (version 290.84)

midnightStandard: Midnight Standard

Description

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

Usage

midnightStandard(charvec, format)

Arguments

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

Value

  • returns a timeDate object.

Examples

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

Run the code above in your browser using DataLab