Support for integer timestamps

Now the strToDate functions tires to cast the time field as unix timestamp before trying to parse it as a string.