Skip to content

Commit

Permalink
gf
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Rinker committed Aug 18, 2017
1 parent 1a085fe commit 4ef47b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

S3method(f_12_hour,default)
S3method(f_12_hour,integer)
S3method(f_12_hour,numeric)
S3method(f_month,Date)
S3method(f_month,POSIXlt)
S3method(f_month,default)
Expand Down
2 changes: 1 addition & 1 deletion R/f_12_hour.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ f_12_hour <- function(x = Sys.time(), format = '%I:%M %p', pad.char = '', ...){
#' @method f_12_hour default
f_12_hour.default <- function(x, format = '%I:%M %p', pad.char = '', ...){

out <- format(as.POSIXct(x, ...), format = format)
out <- format(as.POSIXct(x, ..., origin = "1960-01-01"), format = format)
gsub('^0', pad.char, out)

}
Expand Down
3 changes: 3 additions & 0 deletions man/f_12_hour.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ef47b8

Please sign in to comment.