FormatDateTime: GUI: Build Date-Time String Formats

Description Usage Arguments Value Author(s) See Also Examples

Description

A graphical user interface (GUI) for converting between character representations and objects of class POSIXt or Date.

Usage

1
2
FormatDateTime(sample = as.POSIXct("1991-08-25 20:57:08"), fmt = "",
  parent = NULL)

Arguments

sample

POSIXt or Date. Sample date-time

fmt

character. Conversion specification format

parent

tkwin. GUI parent window

Value

Returns a character string representing the formatted date-time value.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

strptime, format

Examples

1
2
3
4
5
## Not run: 
  new.fmt <- FormatDateTime(fmt = "%A %B %d %I:%M %p")
  FormatDateTime(Sys.Date())

## End(Not run)

RSurvey documentation built on May 2, 2019, 3:28 p.m.