Learn R Programming

RSEIS (version 2.1-6)

showdatetime: Print Date/TIME

Description

Print Date and Time as yyyy-mo-do hr:mi:se msec

Usage

showdatetime(rd, AMPM = FALSE)

Arguments

rd
date time list, jd hr mi sec yr
AMPM
24 hour time (AMPM=FALSE) or 12 hour clock (AMPM=TRUE)

Value

  • Side Effects

Examples

Run this code
hrs = seq(from=-36, to=36, by=2)

rd = recdate(jd=1, hr=hrs, mi=34, sec=23+runif(n=length(hrs), 0, 59) , yr=2009)

showdatetime(rd)

showdatetime(rd, AMPM=TRUE)

Run the code above in your browser using DataLab