FormatDateTime: GUI: Build Date-Time String Formats

Description Usage Arguments Value Author(s) See Also Examples

View source: R/FormatDateTime.R

Description

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

Usage

1
2
3
4
5
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)

jfisher-usgs/RSurvey documentation built on July 3, 2020, 4:20 p.m.