Learn R Programming

cwhmisc (version 3.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] "2001-02-07, 15:24:51"
mydate()    #[1] "2001-02-07"
mytime()    #[1] "15:24:12"

Run the code above in your browser using DataLab