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().
The issue is very likely in
format.ITime. I think the behaviour should be similar toas.Date(),as.IDate()andas.POSIXct().