View source: R/fun.DateFormat.R
fun.DateTimeFormat | R Documentation |
Input a date/time string and output R date/time *format*. The format can then be used to convert to a different format. Determine Date and Time *format* from input (single record) using Perl regular expressions. Perl Code prepared by Ann Roseberry Lincoln Not all possible formats recognized but the most common are accepted. If AM/PM is left off them assume 24 hr time.
fun.DateTimeFormat(fun.DateTime, fun.dt.Type)
fun.DateTime |
Date, Time, or DateTime data |
fun.dt.Type |
type of input; date, time, or date |
Returns a text string representing the date/time format of the input fun.DateTime. Wrapper function for fun.dt.Type2().
#Not intended to be accessed indepedently.
#format of current date
fun.DateTimeFormat(Sys.Date(),"date")
fun.DateTimeFormat(Sys.time(),"datetime")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.