Skip to content

as.ITime(character(0)) fails #2032

@arunsrinivasan

Description

@arunsrinivasan
require(data.table)
as.ITime(character(0))
# Error in substring(paste("0", hh, sep = ""), nchar(paste(hh))) : 
#   invalid substring arguments

The issue is very likely in format.ITime. I think the behaviour should be similar to as.Date(), as.IDate() and as.POSIXct().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions