Learn R Programming

cwhmisc (version 6.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] "2014-10-03, 16:00:03"
mydate()  #[1] "2014-10-03"
mytime()  #[1] "16:00:09"

Run the code above in your browser using DataLab