Learn R Programming

cwhmisc (version 4.0)

datetime: Show date and time in ISO format

Description

datetime() outputs date and time in ISO format

Usage

datetime(); mydate(); mytime()

Arguments

Value

  • character string

Examples

Run this code
datetime()  #[1] "2012-09-27, 13:56:38"
mydate()  #[1] "2012-09-27"
mytime()  #[1] "13:56:39"

Run the code above in your browser using DataLab