Skip to content

Commit

Permalink
Honor hour/min/sec BY values (fix #91)
Browse files Browse the repository at this point in the history
Hour/min/sec BY values were not being honored because the resolution
check attempted to match against the wrong values, causing the output to
be converted to Date instead of POSIXct.
  • Loading branch information
joshuaulrich committed May 15, 2015
1 parent 4b5be5b commit f5f3e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/timeBasedSeq.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function(x, retclass=NULL, length.out=NULL) {

convert.to <- 'Date'
if(max.resolution == 2 || resolution == 'month' ) convert.to <- 'yearmon'
if(max.resolution > 3 || resolution %in% c("H","M","S")) convert.to <- 'POSIXct'
if(max.resolution > 3 || resolution %in% c("hour","mins","secs")) convert.to <- 'POSIXct'


if(is.na(to) && missing(length.out))
Expand Down

0 comments on commit f5f3e8d

Please sign in to comment.