Learn R Programming

RSEIS (version 4.2-4)

showdatetime: Print Date/TIME

Description

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

Usage

showdatetime(rd, AMPM = FALSE, verbose=TRUE)

Value

Side Effects

Arguments

rd

date time list, jd hr mi sec yr

AMPM

24 hour time (AMPM=FALSE) or 12 hour clock (AMPM=TRUE)

verbose

logical, print information to screen, default=TRUE

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

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